Skip to content

Commit b973c6a

Browse files
authored
Adjust custom element registry initialization for declarative shadow trees
In whatwg/dom#1409 this was changed for attachShadow(), but we forgot to change the HTML parser at the same time. Tests: web-platform-tests/wpt#56134. Fixes #11947.
1 parent 7051902 commit b973c6a

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

source

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140339,12 +140339,10 @@ document.body.appendChild(text);
140339140339
<p>Otherwise:</p>
140340140340

140341140341
<ol>
140342-
<li><p>Let <var>registry</var> be <var>declarativeShadowHostElement</var>'s <span
140343-
data-x="element-custom-element-registry">custom element registry</span>.</p></li>
140344-
140345-
<li><p>If <var>templateStartTag</var> has a <code
140342+
<li><p>Let <var>registry</var> be null if <var>templateStartTag</var> has a <code
140346140343
data-x="attr-template-shadowrootcustomelementregistry">shadowrootcustomelementregistry</code>
140347-
attribute, then set <var>registry</var> to null.</p></li>
140344+
attribute; otherwise <var>declarativeShadowHostElement</var>'s <span>node document</span>'s
140345+
<span data-x="element-custom-element-registry">custom element registry</span>.</p></li>
140348140346

140349140347
<li>
140350140348
<p><span data-x="concept-attach-a-shadow-root">Attach a shadow root</span> with

0 commit comments

Comments
 (0)