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 23069 - [Custom]: Elements in HTML Imports should upgrade as if imports blocked parsing
Summary: [Custom]: Elements in HTML Imports should upgrade as if imports blocked parsing
Status: RESOLVED DUPLICATE of bug 22928
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - Component Model (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Dimitri Glazkov
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 14968
  Show dependency treegraph
 
Reported: 2013-08-26 16:15 UTC by Steve Orvell
Modified: 2013-08-26 16:50 UTC (History)
0 users

See Also:


Attachments

Description Steve Orvell 2013-08-26 16:15:42 UTC
Consider a custom element that declares other custom elements. See, for example,  <polymer-element> (https://github.com/Polymer/polymer) which is similar to the deprecated <element> element.

It's common to want to place dependencies in HTML Imports. Consider this setup:

main document:
  <script src="polymer.js"></script> // registers polymer-element
  <link rel="import" href="x-a.html">
  <polymer-element name="x-b" extends="x-a">...</polymer-element>

x-a.html:
  <polymer-element name="x-a">...</polymer-element>

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.
Comment 1 Dimitri Glazkov 2013-08-26 16:46:57 UTC
This is a dupe of bug 22928, right?
Comment 2 Steve Orvell 2013-08-26 16:48:47 UTC
Yup, dupe. Sorry didn't see the other bug.
Comment 3 Dimitri Glazkov 2013-08-26 16:50:11 UTC

*** This bug has been marked as a duplicate of bug 22928 ***