This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 8758 - Define DOMContentLoaded
Summary: Define DOMContentLoaded
Status: VERIFIED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - DOM3 Events (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: Travis Leithead [MSFT]
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords: reviewerSatisfied
Depends on:
Blocks:
 
Reported: 2010-01-14 19:31 UTC by Ms2ger
Modified: 2012-03-09 17:42 UTC (History)
3 users (show)

See Also:


Attachments

Description Ms2ger 2010-01-14 19:31:39 UTC
HTML5 fires a DOMContentLoaded event. [1] It would probably be useful to define it in DOM3Events.

[1] http://www.whatwg.org/html5/#stop-parsing
Comment 1 Anne 2010-01-30 15:06:52 UTC
What exactly needs to be defined?
Comment 2 Travis Leithead [MSFT] 2012-03-08 21:16:52 UTC
Assigning to myself to take action on these open bugs.
Comment 3 Travis Leithead [MSFT] 2012-03-09 01:00:15 UTC
Starting from HTML5, section 8.2.6 (http://dev.w3.org/html5/spec/Overview.html#the-end), I see the definition of an event type named "DOMContentLoaded". That section calls it a "simple event".

Looking at the definition for simple event (http://dev.w3.org/html5/spec/Overview.html#fire-a-simple-event), it looks like it is (swapping out variables):

"an event with the name [DOMContentLoade], <del>which does not bubble</del> (except where otherwise stated [it *is* stated]) and is not cancelable <del>(except where otherwise stated)</del>, and which uses the Event interface, must be created and dispatched at the given target [Document]."

So this is just a regular Event, which is defined in DOM3 Events and DOM4.

My conclusion is that this is a satisfactory definition of DOMContentLoaded.
Comment 4 Ms2ger 2012-03-09 10:27:39 UTC
Agreed; thank you.