Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed exception thrown in construction steps. #10572

Merged
merged 1 commit into from
Aug 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -12071,8 +12071,7 @@ document.createElement("bad-1"); // (2)</code></pre>

<li>
<p>If <var>element</var> is an <span data-x="concept-already-constructed-marker"><i>already
constructed</i> marker</span>, then throw an <span>"<code>InvalidStateError</code>"</span>
<code>DOMException</code>.</p>
constructed</i> marker</span>, then throw a <code>TypeError</code>.</p>

<div class="example">
<p>This can occur when the author code inside the <span>custom element
Expand All @@ -12090,7 +12089,7 @@ class DontDoThis extends HTMLElement {
// Now the construction stack will contain an <i>already constructed</i> marker.
}

// This will then fail with an "InvalidStateError" DOMException:
// This will then fail with a TypeError:
super();
}
}</code></pre>
Expand Down