{"action":"opened","issue":{"url":"https://api.github.com/repos/hayatoito/test/issues/121","labels_url":"https://api.github.com/repos/hayatoito/test/issues/121/labels{/name}","comments_url":"https://api.github.com/repos/hayatoito/test/issues/121/comments","events_url":"https://api.github.com/repos/hayatoito/test/issues/121/events","html_url":"https://github.com/hayatoito/test/issues/121","id":80448779,"number":121,"title":"[Shadow]: Declarative Shadow DOM (bugzilla: 28441)","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-05-25T08:30:37Z","updated_at":"2015-05-25T08:30:37Z","closed_at":null,"body":"Title: [Shadow]: Declarative Shadow DOM (bugzilla: 28441)\n\nMigrated from: https://www.w3.org/Bugs/Public/show_bug.cgi?id=28441\nAssigned_to: *Dimitri Glazkov*\n\n----\ncomment: 0\ncomment_url: https://www.w3.org/Bugs/Public/show_bug.cgi?id=28441#c0\n*Dimitri Glazkov* wrote on 2015-04-08 15:49:50 +0000.\n\nFrom: https://lists.w3.org/Archives/Public/public-webapps/2015AprJun/0052.html\n\n\"Mostly for performance it would be nice if\nthe composed tree could be serialized and cached. That way first\nrender only requires HTML and CSS with JavaScript kicking in at the\nend. We reasoned it might not be too hard to add something like\n<shadowroot> given our experience with <template>. The only difference\nwould be that <shadowroot> itself would also not be appended to the\ntree and that the DocumentFragment nee ShadowRoot is associated with\n\"its parent\".\"\n\n----\n\ncomment: 1\ncomment_url: https://www.w3.org/Bugs/Public/show_bug.cgi?id=28441#c1\n*Dimitri Glazkov* wrote on 2015-04-08 16:21:10 +0000.\n\nHere's a fairly simple implementation of this using custom elements and templates: http://jsbin.com/xuheb/4/edit\n\nI think this is a great example of:\n\na) using type extensions to avoid more hard-coded parsing behaviors\n\nb) extensible web in action -- no need to wait on spec/browsers to ship this\n\nc) custom element upgrades being helpful in avoiding additional tree traversals and deferring running of the script until whenever you actually need the tree."}}