Re: online/offline events and bubbling

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.

HTH,
-- 
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