Bug 148850

Summary: HTMLTemplateElement.content should have its own ownerDocument
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: cdumez, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Ryosuke Niwa
Reported 2015-09-04 16:41:58 PDT
HTMLTemplateElement should create a signleton owner document that's shared amongst all of its "inert" contents. See https://html.spec.whatwg.org/multipage/scripting.html#appropriate-template-contents-owner-document This bug was found by the newly added test: LayoutTests/http/tests/w3c/html/semantics/scripting-1/the-template-element/template-element/node-document-changes.html
Attachments
Radar WebKit Bug Importer
Comment 1 2015-09-04 16:42:15 PDT
Ryosuke Niwa
Comment 2 2015-09-04 16:42:33 PDT
html/semantics/scripting-1/the-template-element/definitions/template-contents-owner-test-001.html also fails because of this bug.
Ryosuke Niwa
Comment 3 2016-03-02 17:29:09 PST
Oh oops, I uploaded the patch to a wrong bug :( *** This bug has been marked as a duplicate of bug 154936 ***
Note You need to log in before you can comment on or make changes to this bug.