remy/html5demos — pull request #24 by jknotten (2011-12-12 11:42:46+00:00)
Title: html5demos.com online / offline event fix.

Hi Remy,

Thanks for making html5demos.com, it's really awesome! I was playing with the offline-events test, and I found some issues, and discovered why it appears that window.online / window.offline appears not to be working.

All the best

John

The online / offline property on document.body is called ononline and onoffline (lowercase second 'o').

Also, according the html5 spec, the ononline IDL attributes on the Window
object, body element and frameset elements all link to the event handler
implemented by the Window object. This means that setting the IDL attribute
on one of these will automatically set the value on the others.

http://dev.w3.org/html5/spec/Overview.html#event-handlers-on-elements-document-objects-and-window-objects