@@ -73371,10 +73371,7 @@ interface <dfn interface>CustomElementRegistry</dfn> {
73371
73371
DOMString? <span data-x="dom-CustomElementRegistry-getName">getName</span>(CustomElementConstructor <var>constructor</var>);
73372
73372
<span data-x="idl-Promise">Promise</span><<span>CustomElementConstructor</span>> <span data-x="dom-CustomElementRegistry-whenDefined">whenDefined</span>(DOMString <var>name</var>);
73373
73373
[<span>CEReactions</span>] undefined <span data-x="dom-CustomElementRegistry-upgrade">upgrade</span>(<span>Node</span> <var>root</var>);
73374
-
73375
- [<span>CEReactions</span>, NewObject] <span>HTMLElement</span> <span data-x="dom-CustomElementRegistry-createElement">createElement</span>(DOMString <var>name</var>);
73376
- [<span>CEReactions</span>, NewObject] <span>Node</span> <span data-x="dom-CustomElementRegistry-cloneSubtree">cloneSubtree</span>(<span>Node</span> <var>root</var>);
73377
- undefined <span data-x="dom-CustomElementRegistry-initializeSubtree">initializeSubtree</span>((<span>Element</span> or <span>ShadowRoot</span>) <var>root</var>);
73374
+ undefined <span data-x="dom-CustomElementRegistry-initialize">initialize</span>((<span>Element</span> or <span>ShadowRoot</span>) <var>root</var>);
73378
73375
};
73379
73376
73380
73377
callback <dfn callback>CustomElementConstructor</dfn> = <span>HTMLElement</span> ();
@@ -73467,20 +73464,7 @@ dictionary <dfn dictionary>ElementDefinitionOptions</dfn> {
73467
73464
inclusive descendant</span> elements of <var>root</var>, even if they are not
73468
73465
<span>connected</span>.</dd>
73469
73466
73470
- <dt><code data-x=""><var>registry</var>.<span subdfn data-x="dom-CustomElementRegistry-createElement">createElement</span>(<var>name</var>)</code></dt>
73471
- <dd>
73472
- <p>Returns an <span data-x="HTML elements">HTML element</span> with <var>name</var> as its local
73473
- name and <var>registry</var> as its registry.</p>
73474
-
73475
- <p>If <var>name</var> does not match the <code data-x="xml-Name">Name</code> production an
73476
- <span>"<code>InvalidCharacterError</code>"</span> <code>DOMException</code> will be thrown.</p>
73477
- </dd>
73478
-
73479
- <dt><code data-x=""><var>registry</var>.<span subdfn data-x="dom-CustomElementRegistry-cloneSubtree">cloneSubtree</span>(<var>root</var>)</code></dt>
73480
- <dd>Returns a copy of <var>root</var>, changing the registry from <var>root</var>'s inclusive
73481
- descendants from null (if any) to <var>registry</var> in the process.</dd>
73482
-
73483
- <dt><code data-x=""><var>registry</var>.<span subdfn data-x="dom-CustomElementRegistry-initializeSubtree">initializeSubtree</span>(<var>root</var>)</code></dt>
73467
+ <dt><code data-x=""><var>registry</var>.<span subdfn data-x="dom-CustomElementRegistry-initialize">initialize</span>(<var>root</var>)</code></dt>
73484
73468
<dd>Each <span>inclusive descendant</span> of <var>root</var> with a null registry will have it
73485
73469
updated to this <code>CustomElementRegistry</code> object.</dd>
73486
73470
</dl>
@@ -73823,55 +73807,20 @@ console.assert(el instanceof SpiderMan); // upgraded!</code></pre>
73823
73807
<div w-nodev>
73824
73808
73825
73809
<p>The <dfn method for="CustomElementRegistry"><code
73826
- data-x="dom-CustomElementRegistry-createElement">createElement(<var>name</var>)</code></dfn>
73827
- method steps are:</p>
73828
-
73829
- <ol>
73830
- <li><p>If <var>name</var> does not match the XML <code data-x="xml-Name">Name</code> production,
73831
- then throw an <span>"<code>InvalidCharacterError</code>"</span>
73832
- <code>DOMException</code>.</p></li>
73833
-
73834
- <li><p>Return the result of <span data-x="create an element">creating an element</span> given
73835
- <span>this</span>'s <span>relevant global object</span>'s <span
73836
- data-x="concept-document-window">associated <code>Document</code></span>, <var>name</var>, the
73837
- <span>HTML namespace</span>, null, null, true, and <span>this</span>.</p></li>
73838
- </ol>
73839
-
73840
- <p>The <dfn method for="CustomElementRegistry"><code
73841
- data-x="dom-CustomElementRegistry-cloneSubtree">cloneSubtree(<var>root</var>)</code></dfn>
73842
- method steps are:</p>
73843
-
73844
- <ol>
73845
- <li><p>If <var>root</var> is a <code>Document</code> or <code>ShadowRoot</code> object, then
73846
- throw a <span>"<code>NotSupportedError</code>"</span> <code>DOMException</code>.</p></li>
73847
-
73848
- <li><p>Return the result of <span data-x="concept-node-clone">cloning a node</span> given
73849
- <var>root</var> with <span data-x="concept-node-clone-subtree"><i>subtree</i></span> set to true
73850
- and <span data-x="concept-node-clone-fallbackRegistry"><i>fallbackRegistry</i></span> set
73851
- <span>this</span>.</p></li>
73852
- </ol>
73853
-
73854
- <p>The <dfn method for="CustomElementRegistry"><code
73855
- data-x="dom-CustomElementRegistry-initializeSubtree">initializeSubtree(<var>root</var>)</code></dfn>
73856
- method steps are:</p>
73810
+ data-x="dom-CustomElementRegistry-initialize">initialize(<var>root</var>)</code></dfn> method
73811
+ steps are:</p>
73857
73812
73858
73813
<ol>
73859
- <li>
73860
- <p>For each <span>inclusive descendant</span> <var>inclusiveDescendant</var> of
73861
- <var>root</var>:</p>
73814
+ <li><p>If <var>root</var> is a <code>ShadowRoot</code> node whose <span
73815
+ data-x="shadow-root-custom-element-registry">custom element registry</span> is null, then set
73816
+ <var>root</var>'s <span data-x="shadow-root-custom-element-registry">custom element
73817
+ registry</span> to <span>this</span>.</p></li>
73862
73818
73863
- <ol>
73864
- <li><p>If <var>inclusiveDescendant</var> is an <code>Element</code> node whose <span
73865
- data-x="element-custom-element-registry">custom element registry</span> is null, then set
73866
- <var>inclusiveDescendant</var>'s <span data-x="element-custom-element-registry">custom element
73867
- registry</span> to <span>this</span>.</p></li>
73868
-
73869
- <li><p>Otherwise, if <var>inclusiveDescendant</var> is a <code>ShadowRoot</code> node whose
73870
- <span data-x="shadow-root-custom-element-registry">custom element registry</span> is null, set
73871
- <var>inclusiveDescendant</var>'s <span data-x="shadow-root-custom-element-registry">custom
73872
- element registry</span> to <span>this</span>.</p></li>
73873
- </ol>
73874
- </li>
73819
+ <li><p>For each <span>inclusive descendant</span> <var>inclusiveDescendant</var> of
73820
+ <var>root</var>: if <var>inclusiveDescendant</var> is an <code>Element</code> node whose <span
73821
+ data-x="element-custom-element-registry">custom element registry</span> is null, then set
73822
+ <var>inclusiveDescendant</var>'s <span data-x="element-custom-element-registry">custom element
73823
+ registry</span> to <span>this</span>.</p></li>
73875
73824
</ol>
73876
73825
73877
73826
@@ -130414,7 +130363,7 @@ dictionary <dfn dictionary>StorageEventInit</dfn> : <span>EventInit</span> {
130414
130363
<li>
130415
130364
<p>Let <var>element</var> be the result of <span data-x="create an element">creating an
130416
130365
element</span> given <var>document</var>, <var>localName</var>, <var>given namespace</var>,
130417
- null, <var>is</var>, and <var>willExecuteScript </var>.</p>
130366
+ null, <var>is</var>, <var>willExecuteScript</var>, and <var>registry </var>.</p>
130418
130367
130419
130368
<p class="note">This will cause <span data-x="custom element constructor">custom element
130420
130369
constructors</span> to run, if <var>willExecuteScript</var> is true. However, since we
0 commit comments