- From: Piers Wombwell <notifications@github.com>
- Date: Sat, 04 Jul 2026 11:12:21 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Saturday, 4 July 2026 18:12:26 UTC
This restores the behaviour introduced by #1272.
After #1334, the shadow-root cloning step says to clone each child of the shadow root with `subtree` set to `subtree`. When the original call is `host.cloneNode(false)`, that causes each direct child of a clonable shadow root to be cloned shallowly.
That contradicts the behaviour agreed in #1249 / #1272 and the WPT `shadow-dom/shadow-root-clonable.html`, which expects a clonable shadow root to be cloned in its entirety even when the shadow host is shallow-cloned.
You can view, comment on, or merge this pull request online at:
https://github.com/whatwg/dom/pull/1480
-- Commit Summary --
* Restore deep cloning of clonable shadow root contents.
-- File Changes --
M dom.bs (2)
-- Patch Links --
https://github.com/whatwg/dom/pull/1480.patch
https://github.com/whatwg/dom/pull/1480.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/1480
You are receiving this because you are subscribed to this thread.
Message ID: <whatwg/dom/pull/1480@github.com>
Received on Saturday, 4 July 2026 18:12:26 UTC