Bug 68574 - adoptNode does not work with shadow dom
Summary: adoptNode does not work with shadow dom
Status: RESOLVED DUPLICATE of bug 222657
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL: http://plexode.com/eval3/#ht=%3Cdiv%2...
Depends on:
Reported: 2011-09-21 14:55 PDT by Erik Arvidsson
Modified: 2022-08-01 21:10 PDT (History)
5 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Erik Arvidsson 2011-09-21 14:55:53 PDT
My test case uses an audio element created in a different HTMLDocument. When I append it to the current document (with or without adoptNode) the shadow is not created. If I on the other hand do an importNode (which creates a new element) it all works. See URL for test case.
Comment 1 Ahmad Saleem 2022-08-01 13:47:49 PDT
If I understand this correctly, I am able to reproduce this behavior in Safari 15.6 on macOS 12.5 using attached test case in URL field. In Safari, there is only one "Media" element or player while all other browsers (Chrome Canary 106 and Firefox Nightly 105) show three similar to JS showing three audio sources.

I am not sure but I think this is what this bug is for, it could be duplicate of some other bug explaining that Safari is not able to handle multiple audio sources or not. But just wanted to share latest testing results. Thanks!
Comment 2 Ryosuke Niwa 2022-08-01 21:10:25 PDT
Reverse duping this to the bug 222657 since it has more context.

*** This bug has been marked as a duplicate of bug 222657 ***