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
Keywords: InRadar
Depends on:
Reported: 2015-09-04 16:41 PDT by Ryosuke Niwa
Modified: 2016-03-02 17:29 PST (History)
2 users (show)

See Also:


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:
Comment 1 Radar WebKit Bug Importer 2015-09-04 16:42:15 PDT
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 ***