Skip to content

Commit

Permalink
Define the onabort event handler IDL attribute
Browse files Browse the repository at this point in the history
Previously, the IDL was present, but there was no behavior.
  • Loading branch information
domenic authored and annevk committed Sep 23, 2019
1 parent dea5d92 commit e017c7a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion dom.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1835,6 +1835,11 @@ service worker.
<p>The <dfn attribute for=AbortSignal>aborted</dfn> attribute's getter, when invoked, must return
true if the <a>context object</a>'s [=AbortSignal/aborted flag=] is set, and false otherwise.

<p>The <dfn attribute for=AbortSignal><code>onabort</code></dfn> attribute is an
<a>event handler IDL attribute</a> for the <dfn export for=AbortSignal><code>onabort</code></dfn>
<a>event handler</a>, whose <a>event handler event type</a> is
<dfn event for=AbortSignal><code>abort</code></dfn>.

<p class=note>Changes to an {{AbortSignal}} object represent the wishes of the corresponding
{{AbortController}} object, but an API observing the {{AbortSignal}} object can chose to ignore
them. For instance, if the operation has already completed.
Expand All @@ -1852,7 +1857,7 @@ them. For instance, if the operation has already completed.

<li><p><a for=set>Empty</a> <var>signal</var>'s <a for=AbortSignal>abort algorithms</a>.

<li><p>[=Fire an event=] named <code>abort</code> at <var>signal</var>.
<li><p>[=Fire an event=] named {{AbortSignal/abort}} at <var>signal</var>.
</ol>

<p>A <var>followingSignal</var> (an {{AbortSignal}}) is made to
Expand Down

0 comments on commit e017c7a

Please sign in to comment.