<?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>22455</bug_id>
          
          <creation_ts>2013-06-25 14:58:19 +0000</creation_ts>
          <short_desc>[Custom]: Consider inserting unresolved elements at the start of the map.</short_desc>
          <delta_ts>2013-06-25 20:47:00 +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 - Component Model</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>14968</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Dominic Cooney">dominicc</reporter>
          <assigned_to name="Dimitri Glazkov">dglazkov</assigned_to>
          
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>89817</commentid>
    <comment_count>0</comment_count>
    <who name="Dominic Cooney">dominicc</who>
    <bug_when>2013-06-25 14:58:19 +0000</bug_when>
    <thetext>&quot;Whenever an unresolved element is created, it must be added to the upgrade candidates map.&quot;

It would be good to clarify what order is implied here. Does &quot;added&quot; mean &quot;added to the end of a list&quot;?

Consider three hypothetical fragments of markup A B C that are each markup for a custom element, and a script S which registers the custom elements in ABC.

If the document is structured SABC then the ready callbacks are delivered in order CBA per Section 7 (&quot;Place ... at the front of the ... queue.&quot;)

However if the document is structured ABCS then the order in which the ready callbacks are delivered is unclear, but it is presumably ABC.

Is this interpretation correct? Is this seeming inconsistency desirable? (I guess it will encourage authors to be robust to initialization order, or if they desire a stable order, put their registration script last which has the side-effect of doing depth-first initialization which is pretty nice.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89829</commentid>
    <comment_count>1</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2013-06-25 18:03:10 +0000</bug_when>
    <thetext>for reference, test here: https://codereview.chromium.org/17707002/diff/1/LayoutTests/fast/dom/custom/callbacks-upgrade.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89847</commentid>
    <comment_count>2</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2013-06-25 20:44:55 +0000</bug_when>
    <thetext>I&apos;ll just put all of these at the front of the queue. Let&apos;s be consistent.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89848</commentid>
    <comment_count>3</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2013-06-25 20:47:00 +0000</bug_when>
    <thetext>https://dvcs.w3.org/hg/webcomponents/rev/148112e4f986</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>