<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>8758</bug_id>
          
          <creation_ts>2010-01-14 19:31:39 +0000</creation_ts>
          <short_desc>Define DOMContentLoaded</short_desc>
          <delta_ts>2012-03-09 17:42:38 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>HISTORICAL - DOM3 Events</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>reviewerSatisfied</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ms2ger">Ms2ger</reporter>
          <assigned_to name="Travis Leithead [MSFT]">travil</assigned_to>
          <cc>annevk</cc>
    
    <cc>mike</cc>
    
    <cc>public-webapps</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>31059</commentid>
    <comment_count>0</comment_count>
    <who name="Ms2ger">Ms2ger</who>
    <bug_when>2010-01-14 19:31:39 +0000</bug_when>
    <thetext>HTML5 fires a DOMContentLoaded event. [1] It would probably be useful to define it in DOM3Events.

[1] http://www.whatwg.org/html5/#stop-parsing</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31357</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2010-01-30 15:06:52 +0000</bug_when>
    <thetext>What exactly needs to be defined?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65163</commentid>
    <comment_count>2</comment_count>
    <who name="Travis Leithead [MSFT]">travil</who>
    <bug_when>2012-03-08 21:16:52 +0000</bug_when>
    <thetext>Assigning to myself to take action on these open bugs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65186</commentid>
    <comment_count>3</comment_count>
    <who name="Travis Leithead [MSFT]">travil</who>
    <bug_when>2012-03-09 01:00:15 +0000</bug_when>
    <thetext>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 &quot;DOMContentLoaded&quot;. That section calls it a &quot;simple event&quot;.

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):

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

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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65205</commentid>
    <comment_count>4</comment_count>
    <who name="Ms2ger">Ms2ger</who>
    <bug_when>2012-03-09 10:27:39 +0000</bug_when>
    <thetext>Agreed; thank you.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>