@@ -12041,8 +12041,8 @@ console.assert(el.constructor === Element);</code></pre>
12041
12041
<span>overridden constructor steps</span>:</p>
12042
12042
12043
12043
<ol>
12044
- <li><p>Let <var>registry</var> be the <span>current global object</span>'s
12045
- <code>CustomElementRegistry</code> object .</p></li>
12044
+ <li><p>Let <var>registry</var> be <span>current global object</span>'s <span
12045
+ data-x="global-custom-element-registry">custom element registry</span> .</p></li>
12046
12046
12047
12047
<li>
12048
12048
<p>If <span>NewTarget</span> is equal to the <span>active function
@@ -12065,23 +12065,25 @@ document.createElement("bad-1"); // (2)</code></pre>
12065
12065
</li>
12066
12066
12067
12067
<li>
12068
- <p>Let <var>definition</var> be the entry in <var>registry</var> with <span
12068
+ <p>Let <var>definition</var> be the item in <var>registry</var>'s <span>custom element
12069
+ definition set</span> with <span
12069
12070
data-x="concept-custom-element-definition-constructor">constructor</span> equal to
12070
- <span>NewTarget</span>. If there is no such definition , then throw a <code>TypeError</code>.</p>
12071
+ <span>NewTarget</span>. If there is no such item , then throw a <code>TypeError</code>.</p>
12071
12072
12072
- <p class="note">Since there can be no entry in <var>registry</var> with a <span
12073
+ <p class="note">Since there can be no item in <var>registry</var>'s <span>custom element
12074
+ definition set</span> with a <span
12073
12075
data-x="concept-custom-element-definition-constructor">constructor</span> of undefined, this
12074
12076
step also prevents HTML element constructors from being called as functions (since in that case
12075
12077
<span>NewTarget</span> will be undefined).</p>
12076
12078
</li>
12077
12079
12078
- <li><p>Let <var>is value </var> be null.</p></li>
12080
+ <li><p>Let <var>isValue </var> be null.</p></li>
12079
12081
12080
12082
<li>
12081
12083
<p>If <var>definition</var>'s <span data-x="concept-custom-element-definition-local-name">local
12082
12084
name</span> is equal to <var>definition</var>'s <span
12083
12085
data-x="concept-custom-element-definition-name">name</span> (i.e., <var>definition</var> is for
12084
- an <span>autonomous custom element</span>), then :</p>
12086
+ an <span>autonomous custom element</span>):</p>
12085
12087
12086
12088
<ol>
12087
12089
<li>
@@ -12130,15 +12132,15 @@ document.createElement("bad-1"); // (2)</code></pre>
12130
12132
</div>
12131
12133
</li>
12132
12134
12133
- <li><p>Set <var>is value </var> to <var>definition</var>'s <span
12135
+ <li><p>Set <var>isValue </var> to <var>definition</var>'s <span
12134
12136
data-x="concept-custom-element-definition-name">name</span>.</p></li>
12135
12137
</ol>
12136
12138
</li>
12137
12139
12138
12140
<li>
12139
12141
<p>If <var>definition</var>'s <span
12140
12142
data-x="concept-custom-element-definition-construction-stack">construction stack</span> is
12141
- empty, then :</p>
12143
+ empty:</p>
12142
12144
12143
12145
<ol>
12144
12146
<li><p>Let <var>element</var> be the result of <span data-x="internally create a new object
@@ -12167,7 +12169,7 @@ document.createElement("bad-1"); // (2)</code></pre>
12167
12169
element definition</span> to <var>definition</var>.</p></li>
12168
12170
12169
12171
<li><p>Set <var>element</var>'s <span data-x="concept-element-is-value"><code
12170
- data-x="">is</code> value</span> to <var>is value </var>.</p></li>
12172
+ data-x="">is</code> value</span> to <var>isValue </var>.</p></li>
12171
12173
12172
12174
<li><p>Return <var>element</var>.</p></li>
12173
12175
</ol>
@@ -72625,7 +72627,7 @@ document.body.append(parent);
72625
72627
null, then return null.</p></li>
72626
72628
72627
72629
<li><p>Let <var>registry</var> be <var>document</var>'s <span>relevant global object</span>'s
72628
- <code>CustomElementRegistry</code> object .</p></li>
72630
+ <span data-x="global-custom-element-registry">custom element registry</span> .</p></li>
72629
72631
72630
72632
<li><p>If <var>registry</var>'s <span>custom element definition set</span> <span data-x="list
72631
72633
contains">contains</span> an item with <span
@@ -72646,9 +72648,10 @@ document.body.append(parent);
72646
72648
72647
72649
<h4 id="custom-elements-api">The <code>CustomElementRegistry</code> interface</h4>
72648
72650
72649
- <p w-nodev>Each <code>Window</code> object is associated with a unique instance of a
72650
- <code>CustomElementRegistry</code> object, allocated when the <code>Window</code> object is
72651
- created.</p>
72651
+ <p w-nodev>Each <code>Window</code> object has an associated <dfn
72652
+ data-x="global-custom-element-registry">custom element registry</dfn> (a
72653
+ <code>CustomElementRegistry</code> object). It is set to a new
72654
+ <code>CustomElementRegistry</code> object when the <code>Window</code> object is created.</p>
72652
72655
72653
72656
<p class="note">Custom element registries are associated with <code>Window</code> objects, instead
72654
72657
of <code>Document</code> objects, since each <span>custom element constructor</span> inherits from
0 commit comments