online/offline events and bubbling

Section 5.7.7 "Browser state" discusses online and offline events fired when navigator.onLine changes. The text states that "...the user agent must fire a simple event called [eventname] at the body element."

In section 5.4.4.2 "Event firing", firing a simple event called e is defined as "...an event with the name e, with no namespace, which does not bubble but is cancelable (unless otherwise stated), and which uses the Event interface, must be dispatched at the given element."

If I'm reading this correctly, this should mean that the online and offline events are fired at the body element and they don't bubble. However, there was a discussion in Firefox Bugzilla back in 2007 that concluded that the event should bubble [1]. Today Firefox does bubble the event from document.body to document and to window. In IE8 we fire the event at the body and don't bubble. We think that is what the current spec says.

Can we clarify whether this event is expected to bubble? Have I misread the spec or is this intended to be an "unless otherwise stated" occasion where the simple event should in fact bubble?

Thanks,

Adrian.

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=336682#c21

--
Adrian Bateman
Program Manager - Internet Explorer - Microsoft Corporation
Phone: +1 (425) 538 5111
E-mail: mailto:adrianba@microsoft.com

Received on Friday, 5 December 2008 10:40:17 UTC