- From: Maciej Stachowiak <mjs@apple.com>
- Date: Fri, 8 Aug 2008 01:22:54 -0700
- To: Jonas Sicking <jonas@sicking.cc>
- Cc: Ian Hickson <ian@hixie.ch>, olli@pettay.fi, Web Applications Working Group WG <public-webapps@w3.org>
On Aug 7, 2008, at 11:27 PM, Jonas Sicking wrote: > > Ian Hickson wrote: >> On Thu, 7 Aug 2008, Olli Pettay wrote: >>> Could we actually just say that if document implements >>> DocumentView interface and .defaultView isn't null and implements >>> EventTarget, the event propagates to .defaultView. So in that case >>> defaultView becomes the root of the event target chain (if the >>> target of the event is bound to document). No need to mention >>> Window, since AbstractView is already defined in DOM2 Views[1]. >>> HTML5 defines that AbstractView must also implement Window and >>> EventTarget interfaces. [2] >> Fine by me, so long as the result is compatible with most UAs. > > One very unfortunate thing is that if i recall correctly the Window > object never takes part in the EventTarget chain for the 'load' > event. But does for all other events. This was because a lot of > sites broke when we tried to bubble 'load' to the Window. I think it is best to special-case the 'load' event. We have this same quirk in WebKit. Regards, Maciej
Received on Friday, 8 August 2008 08:23:37 UTC