<?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>24643</bug_id>
          
          <creation_ts>2014-02-13 01:27:55 +0000</creation_ts>
          <short_desc>Want a extension point to extend criteria to fire DOMContentLoaded</short_desc>
          <delta_ts>2014-04-07 21:46:44 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>blocked awaiting response to comment 6 (please remove this when replying)	</status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Unsorted</target_milestone>
          
          <blocked>23526</blocked>
    
    <blocked>24632</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Morrita Hajime">morrita</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>annevk</cc>
    
    <cc>dglazkov</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>100463</commentid>
    <comment_count>0</comment_count>
    <who name="Morrita Hajime">morrita</who>
    <bug_when>2014-02-13 01:27:55 +0000</bug_when>
    <thetext>HTML Imports patches &quot;the end&quot; [1] section of the parser algorithm
so that the parser waits until all script-blocking imports are loaded[2]

It would be great if HTML exposes some extension point to add
another criteria for DOMContentLoaded event emission without monkey patches.

[1] http://www.whatwg.org/specs/web-apps/current-work/multipage/the-end.html#the-end
[2] http://localhost:8000/spec/imports/#additions-to-tree-construction-algorithm</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100486</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2014-02-13 10:17:07 +0000</bug_when>
    <thetext>[2] is http://w3c.github.io/webcomponents/spec/imports/#additions-to-tree-construction-algorithm</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100553</commentid>
    <comment_count>2</comment_count>
    <who name="Morrita Hajime">morrita</who>
    <bug_when>2014-02-13 18:40:16 +0000</bug_when>
    <thetext>(In reply to Anne from comment #1)
&gt; [2] is
&gt; http://w3c.github.io/webcomponents/spec/imports/#additions-to-tree-
&gt; construction-algorithm
*facepalm* Thanks for the catch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100630</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-02-14 21:47:23 +0000</bug_when>
    <thetext>Isn&apos;t import something we just want to merge into HTML in due course, like we did for &lt;template&gt;?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100808</commentid>
    <comment_count>4</comment_count>
    <who name="Morrita Hajime">morrita</who>
    <bug_when>2014-02-18 18:04:05 +0000</bug_when>
    <thetext>(In reply to Ian &apos;Hixie&apos; Hickson from comment #3)
&gt; Isn&apos;t import something we just want to merge into HTML in due course, like
&gt; we did for &lt;template&gt;?

We&apos;re thinking about this but not decided yet. If the Imports spec stays small in coming iterations, it&apos;d be better to merge it into HTML. We need a bit more polish before that point though.

@dglazkov might have better idea.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100809</commentid>
    <comment_count>5</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2014-02-18 18:08:34 +0000</bug_when>
    <thetext>(In reply to Morrita Hajime from comment #4)
&gt; (In reply to Ian &apos;Hixie&apos; Hickson from comment #3)
&gt; &gt; Isn&apos;t import something we just want to merge into HTML in due course, like
&gt; &gt; we did for &lt;template&gt;?
&gt; 
&gt; We&apos;re thinking about this but not decided yet. If the Imports spec stays
&gt; small in coming iterations, it&apos;d be better to merge it into HTML. We need a
&gt; bit more polish before that point though.
&gt; 
&gt; @dglazkov might have better idea.

Yes. We should totally merge it into HTML spec in due course. Imports are designed at HTML layer.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>100999</commentid>
    <comment_count>6</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-02-20 20:26:23 +0000</bug_when>
    <thetext>If we&apos;re going to merge anyway, let&apos;s not worry about hooks (just patch it for now). Do we have an ETA for when this should get merged? (Do we have multiple vendors on board?)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>