{"action":"opened","issue":{"url":"https://api.github.com/repos/w3c/webcomponents/issues/183","labels_url":"https://api.github.com/repos/w3c/webcomponents/issues/183/labels{/name}","comments_url":"https://api.github.com/repos/w3c/webcomponents/issues/183/comments","events_url":"https://api.github.com/repos/w3c/webcomponents/issues/183/events","html_url":"https://github.com/w3c/webcomponents/issues/183","id":93212830,"number":183,"title":"[Shadow]: Define the impact of ordering on relevant HTML elements (bugzilla: 25563)","user":{"login":"hayatoito","id":160288,"avatar_url":"https://avatars.githubusercontent.com/u/160288?v=3","gravatar_id":"","url":"https://api.github.com/users/hayatoito","html_url":"https://github.com/hayatoito","followers_url":"https://api.github.com/users/hayatoito/followers","following_url":"https://api.github.com/users/hayatoito/following{/other_user}","gists_url":"https://api.github.com/users/hayatoito/gists{/gist_id}","starred_url":"https://api.github.com/users/hayatoito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hayatoito/subscriptions","organizations_url":"https://api.github.com/users/hayatoito/orgs","repos_url":"https://api.github.com/users/hayatoito/repos","events_url":"https://api.github.com/users/hayatoito/events{/privacy}","received_events_url":"https://api.github.com/users/hayatoito/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-06T07:38:00Z","updated_at":"2015-07-06T07:38:00Z","closed_at":null,"body":"Title: [Shadow]: Define the impact of ordering on relevant HTML elements (bugzilla: 25563)\n\nMigrated from: https://www.w3.org/Bugs/Public/show_bug.cgi?id=25563\n\n----\ncomment: 0\ncomment_url: https://www.w3.org/Bugs/Public/show_bug.cgi?id=25563#c0\n*Dimitri Glazkov* wrote on 2014-05-05 22:00:40 +0000.\n\nSplitting off from bug 25562: \n\n\"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?\"\n\nSee 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.\n\n----\n\ncomment: 1\ncomment_url: https://www.w3.org/Bugs/Public/show_bug.cgi?id=25563#c1\n*Jonas Sicking* wrote on 2014-05-05 22:06:13 +0000.\n\nI agree. I don't see any strong reasons for either order.\n\n----\n\ncomment: 2\ncomment_url: https://www.w3.org/Bugs/Public/show_bug.cgi?id=25563#c2\n*William Chen* wrote on 2014-05-13 21:24:18 +0000.\n\nIn 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."}}