ISSUE-36: DOMContentLoaded?

ISSUE-36: DOMContentLoaded?

http://www.w3.org/2005/06/tracker/webapi/issues/36

Raised by: Anne van Kesteren
On product: DOM 3 Events

I'm raising this new issue to complete ACTION-21. You can find the proposed text
below. I suggest that we discuss tomorrow, if there is time, whether to include
it or not.

 DOMContentLoaded
  This event MUST be dispatched once the source
  file has been fully loaded and parsed into a
  DOM tree.

  Specifically, this event can be dispatched
  before all external resources are loaded and
  applied and MUST be dispatched before the
  load event. Language specific requirements
  can make the UA to load certain dependencies
  first. In HTML all scripts have to be loaded
  for example.
  
  This event can be used by authors to make
  transformations to the DOM as soon as all the
  Nodes are retrievable by methods like
  getElementById() while still waiting for
  style sheets and images to be loaded for
  example.

One thing that we also have to decide upon is whether or not to go with this
name. In the name of misnomers (images are content) and compatibility we should
probably use it. The original proposal used the name DOMDocumentParsed.

Received on Sunday, 5 March 2006 10:48:05 UTC