W3C home > Mailing lists > Public > public-webapi@w3.org > December 2006

Re: capturing load events

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Thu, 28 Dec 2006 16:33:43 +0100
To: "Hallvord R. M. Steen" <hallvord@opera.com>
Cc: public-webapi@w3.org, "Joao Eiras" <joao.eiras@gmail.com>
Message-ID: <eao7p2p1ja9vbfsljla65b47cho6qp9llg@hive.bjoern.hoehrmann.de>

* Hallvord R. M. Steen wrote:
>It is not clear from the DOM Events spec how the "window" object fits into  
>the capturing/bubbling. Could this be clarified? Which behaviour should be  
>considered correct per the spec?

http://dev.w3.org/cvsweb/2006/webapi/Window/publish/Window.html says the
window event flow is the same as the DOM Event Flow except that `window`
is considered a parent of the Document it contains and that load events
trigger load listeners only if the event's target is the Window. I think
this answers all of your and João's questions. It also means that a

  window.addEventListener('load', func, true);

listener would never be triggered. Presumably that should be changed
to say that it would be triggered only if the event's target is the
Document. Do you see any problem with that?
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Thursday, 28 December 2006 15:33:55 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:16:22 UTC