- From: Anne van Kesteren <notifications@github.com>
- Date: Thu, 08 Jan 2026 00:53:08 -0800
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/dom/pull/1437/review/3638421321@github.com>
@annevk 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
I'm happy to take care of that but if you want to take a stab at it you'd have to define something equivalent to https://dom.spec.whatwg.org/#exclusive-text-node for DocumentFragment.
--
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/1437#discussion_r2671471036
You are receiving this because you are subscribed to this thread.
Message ID: <whatwg/dom/pull/1437/review/3638421321@github.com>
Received on Thursday, 8 January 2026 08:53:12 UTC