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

Re: online/offline events and bubbling

From: Ian Hickson <ian@hixie.ch>
Date: Sat, 6 Dec 2008 01:41:10 +0000 (UTC)
To: Adrian Bateman <adrianba@microsoft.com>
Cc: public-html <public-html@w3.org>
Message-ID: <Pine.LNX.4.62.0812060138190.17401@hixie.dreamhostps.com>

On Thu, 4 Dec 2008, Adrian Bateman wrote:
> 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."
> 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?

Your interpretation is correct in that the spec currently says that 
the 'online' and 'offline' events don't bubble. However, this is actually 
an open issue. The intent is for the 'online' and 'offline' events act 
just like the 'load', 'hashchange', and other events that have event 
handlers on the <body> but are really more complicated than that in 
various ways. I haven't properly specified how that should work yet, as 
I'm not sure how it really should work and it may be that the DOM3 Events 
spec takes care of this detail and HTML5 will just be able to refer to 
what DOM3 Events says.

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Saturday, 6 December 2008 01:41:45 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:15:40 UTC