Skip to content

Commit 672db03

Browse files
committed
Make sure HTML element constructors set a registry
This is covered by existing tests and helps with whatwg/dom#1379.
1 parent dfbc871 commit 672db03

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

source

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12206,6 +12206,9 @@ document.createElement("bad-1"); // (2)</code></pre>
1220612206
<var>definition</var>'s <span data-x="concept-custom-element-definition-local-name">local
1220712207
name</span>.</p></li>
1220812208

12209+
<li><p>Set <var>element</var>'s <span data-x="element-custom-element-registry">custom element
12210+
registry</span> to <var>registry</var>.</p></li>
12211+
1220912212
<li><p>Set <var>element</var>'s <span>custom element state</span> to "<code
1221012213
data-x="">custom</code>".</p></li>
1221112214

@@ -12218,7 +12221,7 @@ document.createElement("bad-1"); // (2)</code></pre>
1221812221
<li><p>Return <var>element</var>.</p></li>
1221912222
</ol>
1222012223

12221-
<p class="note">This occurs when author script constructs a new custom element directly, e.g.
12224+
<p class="note">This occurs when author script constructs a new custom element directly, e.g.,
1222212225
via <code data-x="">new MyCustomElement()</code>.</p>
1222312226
</li>
1222412227

@@ -148434,7 +148437,7 @@ INSERT INTERFACES HERE
148434148437
Ryosuke Niwa,
148435148438
S. Mike Dierken,
148436148439
Salvatore Loreto,
148437-
Sam Atkins, <!-- atkinssj on GitHub -->
148440+
Sam Atkins, <!-- AtkinsSJ on GitHub -->
148438148441
Sam Dutton,
148439148442
Sam Kuper,
148440148443
Sam Ruby,

0 commit comments

Comments
 (0)