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

@annevk commented on this pull request.



> +         <li>
+          <p>Otherwise, set <var>registry</var> to the
+          <a>effective global custom element registry</a> of the result of
+          <a for=/>looking up a custom element registry</a> given <var>inclusiveDescendant</var>'s
+          <a for=tree>parent</a>.
+
+          <ol>
+           <li><p>If <var>inclusiveDescendant</var>'s <a for=Element>custom element registry</a> is
+           non-null and <var>registry</var> is null, set <var>registry</var> to
+           <var>document</var>'s <a for=Document>custom element registry</a>'s
+           <a>effective global custom element registry</a>.
+          </ol>

I don't understand this. If you mean for this to only apply in the Otherwise branch you need to nest the first bit of the Otherwise branch as well.

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

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

Received on Friday, 5 December 2025 10:46:19 UTC