- From: Jayson Chen <notifications@github.com>
- Date: Fri, 21 Nov 2025 12:31:45 -0800
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/dom/pull/1423/review/3494271191@github.com>
@ja-y-son 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>. Is it possible to have a DSD with null registry due to `shadowrootcustomelementregistry` in a null registry document though? Assuming my understanding is correct on "DSD is only created during document parsing and we're not able to get a null registry document during document parsing (has to through JS code like `document.implementation.createHTMLDocument();`)" In that case, we can safely assign a registry to null registry shadow root on adopt and remove the need of "keep custom element registry" as we don't assign registry on append regardless. -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/pull/1423#discussion_r2550890070 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/dom/pull/1423/review/3494271191@github.com>
Received on Friday, 21 November 2025 20:31:49 UTC