{"action":"closed","issue":{"url":"https://api.github.com/repos/w3c/webcomponents/issues/236","repository_url":"https://api.github.com/repos/w3c/webcomponents","labels_url":"https://api.github.com/repos/w3c/webcomponents/issues/236/labels{/name}","comments_url":"https://api.github.com/repos/w3c/webcomponents/issues/236/comments","events_url":"https://api.github.com/repos/w3c/webcomponents/issues/236/events","html_url":"https://github.com/w3c/webcomponents/issues/236","id":93214088,"number":236,"title":"[Custom]: Consider creating registries for HTML documents created through DOMImplementation in some cases (bugzilla: 23018)","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":[{"url":"https://api.github.com/repos/w3c/webcomponents/labels/custom-elements","name":"custom-elements","color":"5319e7"},{"url":"https://api.github.com/repos/w3c/webcomponents/labels/v1","name":"v1","color":"e11d21"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-06T07:41:18Z","updated_at":"2016-03-01T06:32:35Z","closed_at":"2016-03-01T06:32:35Z","body":"Title: [Custom]: Consider creating registries for HTML documents created through DOMImplementation in some cases (bugzilla: 23018)\n\nMigrated from: https://www.w3.org/Bugs/Public/show_bug.cgi?id=23018\n\n----\ncomment: 0\ncomment_url: https://www.w3.org/Bugs/Public/show_bug.cgi?id=23018#c0\n*Dominic Cooney* wrote on 2013-08-20 01:43:15 +0000.\n\nAs written, if you have an document with a registry, then do\n\ndoc2 = document.implementation.createDocument(...)\n\nto create a non-HTML, etc. document (ie one that does not get associated with a registry) and then turn around and do\n\ndoc3 = document.implementation.createHTMLDocument()\n\nthe speced behavior is for doc3 to not have a document/not process Custom Elements.\n\nA possible alternative semantics is for doc3 to get a new, separate registry from the original document. The nice property this gives you is all documents that *could* process Custom Elements (ie right kind of document) *do* process Custom Elements, and just which registry they're associated with differs.\n\n----\n\ncomment: 1\ncomment_url: https://www.w3.org/Bugs/Public/show_bug.cgi?id=23018#c1\n*Dominic Cooney* wrote on 2013-08-20 01:53:56 +0000.\n\nOops, instead of\n\ndoc3 = document.implementation.createHTMLDocument()\n\nOf course I meant\n\ndoc3 = doc2.implementation.createHTMLDocument()"}}