RE: online/offline events and bubbling

On Tue, 30 Dec 2008, Adrian Bateman wrote:
> > 
> > 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.
> 
> Thanks Ian. Is this something that will be resolved soon? We're trying 
> to lock down the platform behaviour for IE8 and we don't want to guess 
> at a behaviour that ends up being different to what the spec changes to.

I've specced this out now. The events (load, hashchange, online, etc) all 
just fire at the Window object now, and are exposed as event handler 
attributes on the <body> for convenience.

HTH,
-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Wednesday, 21 January 2009 11:44:42 UTC