Bug 148850 - HTMLTemplateElement.content should have its own ownerDocument
Summary: HTMLTemplateElement.content should have its own ownerDocument
Status: RESOLVED DUPLICATE of bug 154936
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2015-09-04 16:41 PDT by Ryosuke Niwa
Modified: 2016-03-02 17:29 PST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ryosuke Niwa 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
Comment 1 Radar WebKit Bug Importer 2015-09-04 16:42:15 PDT
<rdar://problem/22587512>
Comment 2 Ryosuke Niwa 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.
Comment 3 Ryosuke Niwa 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 ***