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 25563 - [Shadow]: Define the impact of ordering on relevant HTML elements
Summary: [Shadow]: Define the impact of ordering on relevant HTML elements
Status: RESOLVED MOVED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - Component Model (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Dimitri Glazkov
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on: 26365
Blocks:
  Show dependency treegraph
 
Reported: 2014-05-05 22:00 UTC by Dimitri Glazkov
Modified: 2015-07-06 08:07 UTC (History)
5 users (show)

See Also:


Attachments

Description Dimitri Glazkov 2014-05-05 22:00:40 UTC
Splitting off from bug 25562: 

"We should further say that <script> elements execute. For inline scripts we need to define with order those script execute relative to <script> elements that are in the real document. I.e. if a out-of-document node is given <script> children as well as a Shadow DOM with <script> nodes, then which order do they execute in once the node is inserted into the document?"

See http://jsbin.com/jigoc/1/edit for an example. I intuitively would've have expected the scripts in shadow trees to execute first, but I don't care what we spec, as long as it is specified.
Comment 1 Jonas Sicking (Not reading bugmail) 2014-05-05 22:06:13 UTC
I agree. I don't see any strong reasons for either order.
Comment 2 William Chen 2014-05-13 21:24:18 UTC
In the current spec <script> would execute when they are inserted into the shadow tree even for host nodes that are out-of-document because it's caught by "All other HTML elements in the shadow trees must behave as if they were part of the document tree." in the Shadow DOM spec. But as Jonas's comment in bug 25562 points out, that wording should be removed, and however we decide to spec the behavior of <script> we should make sure that <script> is only executed when the host is in document.
Comment 3 Hayato Ito 2015-07-06 08:07:39 UTC
Moved to https://github.com/w3c/webcomponents/issues/183