<?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>23069</bug_id>
          
          <creation_ts>2013-08-26 16:15:42 +0000</creation_ts>
          <short_desc>[Custom]: Elements in HTML Imports should upgrade as if imports blocked parsing</short_desc>
          <delta_ts>2013-08-26 16:50:11 +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>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>22928</dup_id>
          
          <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="Steve Orvell">sorvell</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>92578</commentid>
    <comment_count>0</comment_count>
    <who name="Steve Orvell">sorvell</who>
    <bug_when>2013-08-26 16:15:42 +0000</bug_when>
    <thetext>Consider a custom element that declares other custom elements. See, for example,  &lt;polymer-element&gt; (https://github.com/Polymer/polymer) which is similar to the deprecated &lt;element&gt; element.

It&apos;s common to want to place dependencies in HTML Imports. Consider this setup:

main document:
  &lt;script src=&quot;polymer.js&quot;&gt;&lt;/script&gt; // registers polymer-element
  &lt;link rel=&quot;import&quot; href=&quot;x-a.html&quot;&gt;
  &lt;polymer-element name=&quot;x-b&quot; extends=&quot;x-a&quot;&gt;...&lt;/polymer-element&gt;

x-a.html:
  &lt;polymer-element name=&quot;x-a&quot;&gt;...&lt;/polymer-element&gt;

In this case, because HTML Imports are non-blocking, the import will parse after the main document and the definition for x-a will not be available by the time x-b wants to extend it.

Ideally, in the presence of HTML Imports custom elements would upgrade in the same order as if imports were blocking (e.g. polymer-element x-a upgrades before polymer-element x-b).

Although placing the script element after the x-a import would also address this use case, it would be unfortunate if this were required because it makes loading the import block parsing the main document.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92580</commentid>
    <comment_count>1</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2013-08-26 16:46:57 +0000</bug_when>
    <thetext>This is a dupe of bug 22928, right?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92581</commentid>
    <comment_count>2</comment_count>
    <who name="Steve Orvell">sorvell</who>
    <bug_when>2013-08-26 16:48:47 +0000</bug_when>
    <thetext>Yup, dupe. Sorry didn&apos;t see the other bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92582</commentid>
    <comment_count>3</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2013-08-26 16:50:11 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 22928 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>