Re: [whatwg/dom] Set registry on null registry element on adopt instead of on insert (PR #1423)

@sorvell commented on this pull request.



> +     <li>
+      <p>If <var>inclusiveDescendant</var> is a <a for=/>shadow root</a>:
+
+      <ol>
+       <li><p>if <var>inclusiveDescendant</var>'s <a for=ShadowRoot>custom element registry</a>
+       is null or <var>inclusiveDescendant</var>'s <a for=ShadowRoot>custom element registry</a>'s
+       <a for=CustomElementRegistry>is scoped</a> is false, then set
+       <var>inclusiveDescendant</var>'s <a for=ShadowRoot>custom element registry</a> to
+       <var>document</var>'s <a>effective global custom element registry</a>.

For the x-foo in host2, yeah, think you’re right if not otherwise covered. Case:
1. Adopted element is null
2. Adopting document is global
3. But adopted element’s root node is null with keep registry null is true.

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

Message ID: <whatwg/dom/pull/1423/review/3508871419@github.com>

Received on Wednesday, 26 November 2025 05:34:49 UTC