[Webkit-unassigned] [Bug 222657] New: adoptNode() discards native shadow DOM roots, breaking several input and media elements
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Mar 3 08:52:52 PST 2021
https://bugs.webkit.org/show_bug.cgi?id=222657
Bug ID: 222657
Summary: adoptNode() discards native shadow DOM roots, breaking
several input and media elements
Product: WebKit
Version: Safari 14
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: DOM
Assignee: webkit-unassigned at lists.webkit.org
Reporter: javan at javan.us
Created attachment 422090
--> https://bugs.webkit.org/attachment.cgi?id=422090&action=review
Test case
When input and media elements are adopted with document.adoptNode() from a foreign document (via DOMParser, for example) they lose their native shadow DOM roots and are left in a mostly broken state: <input>s lose their native UI, and <video> and <audio> elements lose their native controls.
To reproduce, open the attached adopt-node-bug.html file in Safari and compare the correct middle column (imported node) to the incorrect right column (adopted node).
Tested in Safari v14.0.3 (16610.4.3.1.4) on macOS v11.2.2, and mobile Safari on iOS v14.4.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20210303/3c06f74e/attachment-0001.htm>
More information about the webkit-unassigned
mailing list