9 comments

[ 995 ms ] story [ 869 ms ] thread
You should really use "new Notification" rather than "createNotification" because "new Notification" will be supported by browsers other than Chrome:

http://www.w3.org/TR/notifications/#api

Similarly, you should check browser support with window.notifications as well, rather than just window.webkitNotifications.
Based on the discussion in the W3C, I would expect other browsers to implement "new Notification" rather than implementing the window.notifications factory object because the factory object doesn't really serve any purpose. We'd like to remove the factory object from WebKit eventually once folks have switched over to the unprefixed API.