File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -66820,7 +66820,7 @@ interface <dfn>CustomElementRegistry</dfn> {
66820
66820
[<span>CEReactions</span>] void <span data-x="dom-CustomElementRegistry-upgrade">upgrade</span>(<span>Node</span> root);
66821
66821
};
66822
66822
66823
- callback <dfn>CustomElementConstructor</dfn> = any ();
66823
+ callback <dfn>CustomElementConstructor</dfn> = <span>HTMLElement</span> ();
66824
66824
66825
66825
dictionary <dfn>ElementDefinitionOptions</dfn> {
66826
66826
DOMString extends;
@@ -67227,13 +67227,13 @@ customElements.define("x-foo", class extends HTMLElement {
67227
67227
</li>
67228
67228
67229
67229
<li>
67230
- <p>If <span>SameValue</span>(<var>constructResult</var>, <var>element</var>) is false,
67231
- then throw an <span>"< code>InvalidStateError</code>"</span> <code>DOMException </code>.</p>
67230
+ <p>If <span>SameValue</span>(<var>constructResult</var>, <var>element</var>) is false, then
67231
+ throw a < code>TypeError </code>.</p>
67232
67232
67233
67233
<p class="note">This can occur if <var>C</var> constructs another instance of the same custom
67234
67234
element before calling <code data-x="">super()</code>, or if <var>C</var> uses JavaScript's
67235
- <code data-x="">return</code>-override feature to return an arbitrary object from the
67236
- constructor.</p>
67235
+ <code data-x="">return</code>-override feature to return an arbitrary <code>HTMLElement</code>
67236
+ object from the constructor.</p>
67237
67237
</li>
67238
67238
</ol>
67239
67239
You can’t perform that action at this time.
0 commit comments