Re: [whatwg/dom] Include cloning keep custom element registry null while cloning shadow root (PR #1445)

@annevk commented on this pull request.

I wonder how we could make this less error prone. Combining the "custom element registry" and "keep custom element registry null" fields would be nice, but probably quite verbose.

> @@ -4942,6 +4903,10 @@ and an optional <a for=/>document</a> <dfn export for="clone a node"><var>docume
    <li><p>Set <var>copy</var>'s <a for=Element>shadow root</a>'s <a for=ShadowRoot>declarative</a>
    to <var>node</var>'s <a for=Element>shadow root</a>'s <a for=ShadowRoot>declarative</a>.
 
+   <li><p>Set <var>copy</var>'s <a for=Element>shadow root</a>'s
+   <a for=ShadowRoot>keep custom element registry null</a> to <var>node</var>'s
+   <a for=Element>shadow root</a>'s <a for=ShadowRoot>keep custom element registry null</a>

```suggestion
   <a for=Element>shadow root</a>'s <a for=ShadowRoot>keep custom element registry null</a>.
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/1445#pullrequestreview-3665055282
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/pull/1445/review/3665055282@github.com>

Received on Thursday, 15 January 2026 11:05:55 UTC