W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2003

What should the "load" event be attached to?

From: Ian Hickson <ian@hixie.ch>
Date: Sat, 10 May 2003 10:16:18 -0700 (PDT)
To: www-dom@w3.org
Message-ID: <Pine.LNX.4.50.0305101011470.17620-100000@dhalsim.dreamhost.com>

The DOM2 Events specification appears to be unclear about exactly which
objects the "load" event applies to.

In a pure XML context, is it the root element, or the document itself,
that receives this event?

In an (X)HTML context, does the body element get the event?

If the latter, then how does one attach a load event to a document before
the body node has been loaded into the document? (As is common with load
events, since the document is typically not going to be fully loaded when
the event is attached.)

Some clarifications to the DOM2 Events specification would be very useful.
This ambiguity is preventing Mozilla from implementing 'load' event
listeners at this time. (Bug 99820.)

Ian Hickson                                      )\._.,--....,'``.    fL
"meow"                                          /,   _.. \   _\  ;`._ ,.
http://index.hixie.ch/                         `._.-(,_..'--(,_..'`-.;.'
Received on Saturday, 10 May 2003 13:28:17 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:11 UTC