Skip to content

Commit adf976f

Browse files
committed
Correct upgrade an element after Scoped Custom Element Registries
In an earlier design the active custom element constructor map was kept on the global. Unfortunately the change to agent wasn't applied everywhere. Fixes #11223.
1 parent 20a7295 commit adf976f

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

source

+4-6
Original file line numberDiff line numberDiff line change
@@ -74262,11 +74262,9 @@ customElements.define("x-foo", class extends HTMLElement {
7426274262
<li><p>Let <var>C</var> be <var>definition</var>'s <span
7426374263
data-x="concept-custom-element-definition-constructor">constructor</span>.</p></li>
7426474264

74265-
<li><p>Let <var>registry</var> be <var>element</var>'s <span
74266-
data-x="element-custom-element-registry">custom element registry</span>.</p></li>
74267-
7426874265
<li><p><span data-x="map set">Set</span> the <span>surrounding agent</span>'s <span>active custom
74269-
element constructor map</span>[<var>C</var>] to <var>registry</var>.</p></li>
74266+
element constructor map</span>[<var>C</var>] to <var>element</var>'s <span
74267+
data-x="element-custom-element-registry">custom element registry</span>.</p></li>
7427074268

7427174269
<li>
7427274270
<p>Run the following steps while catching any exceptions:</p>
@@ -74316,8 +74314,8 @@ customElements.define("x-foo", class extends HTMLElement {
7431674314

7431774315
<ol>
7431874316
<li>
74319-
<p><span data-x="map remove">Remove</span> <var>registry</var>'s <span>relevant global
74320-
object</span>'s <span>active custom element constructor map</span>[<var>C</var>].</p>
74317+
<p><span data-x="map remove">Remove</span> the <span>surrounding agent</span>'s <span>active
74318+
custom element constructor map</span>[<var>C</var>].</p>
7432174319

7432274320
<p class="note">This is a no-op if <var>C</var> immediately calls <code
7432374321
data-x="">super()</code> as it ought to do.</p>

0 commit comments

Comments
 (0)