Re: [whatwg/dom] Update element adoption logic for scoped registry (PR #1437)

@ja-y-son commented on this pull request.



> -       <a for=CustomElementRegistry>is scoped</a> is false, then set
-       <var>inclusiveDescendant</var>'s <a for=Element>custom element registry</a> to
-       <var>document</var>'s <a>effective global custom element registry</a>.
+       <li>
+        <p>If <var>inclusiveDescendant</var>'s <a for=Element>custom element registry</a> is null
+        and <var>inclusiveDescendant</var>'s <a for=Element>keep custom element registry null</a>
+        is false; or <var>inclusiveDescendant</var>'s <a for=Element>custom element registry</a>'s
+        <a for=CustomElementRegistry>is scoped</a> is false:
+
+        <ol>
+         <li><p>Let <var>registry</var> be null.
+
+         <li><p>If <var>inclusiveDescendant</var>'s <a for=Element>custom element registry</a> is
+         non-null, <var>inclusiveDescendant</var>'s <a for=tree>parent</a> is null, or
+         <var>inclusiveDescendant</var>'s <a for=tree>parent</a> is a {{DocumentFragment}} but not
+         a {{ShadowRoot}}, then set <var>registry</var> to <var>document</var>'s

Could you elaborate on what you meant by define exclusive DocumentFragment?

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

Message ID: <whatwg/dom/pull/1437/review/3638135338@github.com>

Received on Thursday, 8 January 2026 07:34:58 UTC