Re: [whatwg/dom] Scope non-scoped (global) registries to a single document (PR #1392)

@rniwa commented on this pull request.



> @@ -7515,8 +7584,17 @@ are:
 <ol>
  <li><p>Let <var>registry</var> be <a>this</a>'s <a for=Element>custom element registry</a>.
 
- <li><p>If <var>init</var>["{{ShadowRootInit/customElementRegistry}}"] is non-null, then set
- <var>registry</var> to it.
+ <li>
+  <p>If <var>init</var>["{{ShadowRootInit/customElementRegistry}}"] is non-null:
+
+  <ol>
+   <li><p>Set <var>registry</var> to <var>init</var>["{{ShadowRootInit/customElementRegistry}}"].
+
+   <li><p>If <var>registry</var>'s <a for=CustomElementRegistry>is scoped</a> is false and

you can pass in document's custom element registry or a scoped custom element registry.

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

Message ID: <whatwg/dom/pull/1392/review/3045039292@github.com>

Received on Tuesday, 22 July 2025 22:23:59 UTC