W3C home > Mailing lists > Public > public-html@w3.org > December 2008

online/offline events and bubbling

From: Adrian Bateman <adrianba@microsoft.com>
Date: Thu, 4 Dec 2008 18:44:49 -0800
To: public-html <public-html@w3.org>
Message-ID: <749F45FA745A3244A87A63316D4E26B17191075E7A@NA-EXMSG-C108.redmond.corp.microsoft.com>

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

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:38:59 UTC