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

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



> @@ -2902,12 +2902,7 @@ before a <var>child</var>, with an optional <i>suppress observers flag</i>, run
       <p>If <var>inclusiveDescendant</var> is an <a for=/>element</a>:
 
       <ol>
-       <li><p>If <var>inclusiveDescendant</var>'s <a for=Element>custom element registry</a> is
-       null, then set <var>inclusiveDescendant</var>'s <a for=Element>custom element registry</a> to
-       the result of <a for=/>looking up a custom element registry</a> given
-       <var>inclusiveDescendant</var>'s <a for=tree>parent</a>.
-
-       <li><p>Otherwise, if <var>inclusiveDescendant</var>'s
+       <li><p>If <var>inclusiveDescendant</var>'s
        <a for=Element>custom element registry</a>'s <a for=CustomElementRegistry>is scoped</a> is

Added condition to make sure only element with non-null custom element registry will run these couple steps.

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

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

Received on Wednesday, 19 November 2025 00:01:53 UTC