Skip to content

Commit eb29661

Browse files
authored
Make attachShadow() use the global registry by default
This significantly improves the reuse of custom elements in different registries. Tests: web-platform-tests/wpt#55248. Fixes #1407.
1 parent 6107ced commit eb29661

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dom.bs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7583,7 +7583,8 @@ are:
75837583
<p>The <dfn method for=Element><code>attachShadow(<var>init</var>)</code></dfn> method steps are:
75847584

75857585
<ol>
7586-
<li><p>Let <var>registry</var> be <a>this</a>'s <a for=Element>custom element registry</a>.
7586+
<li><p>Let <var>registry</var> be <a>this</a>'s <a>node document</a>'s
7587+
<a for=Document>custom element registry</a>.
75877588

75887589
<li>
75897590
<p>If <var>init</var>["{{ShadowRootInit/customElementRegistry}}"] is non-null:

0 commit comments

Comments
 (0)