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

Update to use new "report an exception" algorithm in HTML #1303

Merged
merged 2 commits into from
Aug 15, 2024
Merged
Changes from 1 commit
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
19 changes: 13 additions & 6 deletions dom.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1638,10 +1638,13 @@ and an optional <var>legacyOutputDidListenersThrowFlag</var>, run these steps:
<li>
<p><a>Call a user object's operation</a> with <var>listener</var>'s
<a for="event listener">callback</a>, "<code>handleEvent</code>", « <var>event</var> », and
<var>event</var>'s {{Event/currentTarget}} attribute value. If this throws an exception, then:
<var>event</var>'s {{Event/currentTarget}} attribute value. If this throws an exception
<var>exception</var>, then:

<ol>
<li><p><a>Report the exception</a>.
<li><p><a lt="report an exception">Report</a> <var>exception</var> for <var>listener</var>'s
<a for="event listener">callback</a>'s corresponding JavaScript object's <a>associated
realm</a>'s <a for="realm">global object</a>.

<li>
<p>Set <var>legacyOutputDidListenersThrowFlag</var> if given.
Expand Down Expand Up @@ -6329,10 +6332,12 @@ given a <var>document</var>, <var>localName</var>, <var>namespace</var>, and opt
<li><p><a lt="upgrade an element">Upgrade</a> <var>element</var> using <var>definition</var>.
</ol>

<p>If this step threw an exception, then:</p>
<p>If this step threw an exception <var>exception</var>, then:</p>

<ol>
<li><p><a>Report the exception</a>.
<li><p><a lt="report an exception">Report</a> <var>exception</var> for <var>definition</var>'s
<a for="custom element definition">constructor</a>'s corresponding JavaScript object's
<a>associated realm</a>'s <a for="realm">global object</a>.

<li><p>Set <var>result</var>'s <a for=Element>custom element state</a> to
"<code>failed</code>".
Expand Down Expand Up @@ -6388,10 +6393,12 @@ given a <var>document</var>, <var>localName</var>, <var>namespace</var>, and opt
<li><p>Set <var>result</var>'s <a for=Element><code>is</code> value</a> to null.
</ol>

<p>If any of these steps threw an exception, then:</p>
<p>If any of these steps threw an exception <var>exception</var>, then:</p>

<ol>
<li><p><a>Report the exception</a>.
<li><p><a lt="report an exception">Report</a> <var>exception</var> for <var>definition</var>'s
<a for="custom element definition">constructor</a>'s corresponding JavaScript object's
<a>associated realm</a>'s <a for="realm">global object</a>.

<li><p>Set <var>result</var> to a new <a for=/>element</a> that implements the
{{HTMLUnknownElement}} interface, with no attributes, <a for=Element>namespace</a> set to the
Expand Down
Loading