@@ -67655,7 +67655,7 @@ console.log(plasticButton2.getAttribute("is")); // will output "plastic-button"<
67655
67655
<code>Window</code> object.</p>
67656
67656
67657
67657
<pre class="idl">interface <dfn>CustomElementsRegistry</dfn> {
67658
- void <span data-x="dom-CustomElementsRegistry-define">define</span>(DOMString name, Function constructor, optional ElementRegistrationOptions options);
67658
+ [<span>CEReactions</span>] void <span data-x="dom-CustomElementsRegistry-define">define</span>(DOMString name, Function constructor, optional ElementRegistrationOptions options);
67659
67659
any <span data-x="dom-CustomElementsRegistry-get">get</span>(DOMString name);
67660
67660
[NewObject] Promise<void> <span data-x="dom-CustomElementsRegistry-whenDefined">whenDefined</span>(DOMString name);
67661
67661
};
@@ -67811,6 +67811,22 @@ dictionary <dfn>ElementRegistrationOptions</dfn> {
67811
67811
67812
67812
<li><p>Add <var>definition</var> to this <code>CustomElementsRegistry</code>.</p></li>
67813
67813
67814
+ <li><p>Let <var>document</var> be this <code>CustomElementsRegistry</code>'s <span
67815
+ data-x="concept-relevant-global">relevant global object</span>'s <span
67816
+ data-x="concept-document-window"><code>Document</code> object</span>.</p></li>
67817
+
67818
+ <li><p>Let <var>upgrade candidates</var> be all elements in <var>document</var> whose namespace
67819
+ is the <span>HTML namespace</span> and whose local name is <var>localName</var>, in tree
67820
+ order. Additionally, if <var>extends</var> is non-null, only include elements that have an
67821
+ attribute named <code data-x="attr-is">is</code> whose value is <var>name</var>.</p></li>
67822
+
67823
+ <li><p>For each element <var>element</var> in <var>upgrade candidates</var>, <span>enqueue a
67824
+ custom element upgrade reaction</span> given <var>element</var> and
67825
+ <var>definition</var>.</p></li>
67826
+
67827
+ <!-- It is equivalent to just try to upgrade all elements in the document, and let "try to
67828
+ upgrade" bail out, but this seems a bit more explicit. -->
67829
+
67814
67830
<li>
67815
67831
<p>If this <code>CustomElementsRegistry</code>'s <span>when-defined promise map</span>
67816
67832
contains an entry with key <var>name</var>:</p>
0 commit comments