Skip to content

Commit 8f20138

Browse files
committed
Editorial: use Infra language for Aborting section
1 parent b80c4f9 commit 8f20138

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

dom.bs

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1779,22 +1779,20 @@ interface AbortController {
17791779
<p>An {{AbortController}} object has an associated <dfn for=AbortController>signal</dfn> (an
17801780
{{AbortSignal}} object).
17811781

1782-
<p>The <dfn constructor for=AbortController><code>AbortController()</code></dfn> constructor, when
1783-
invoked, must run these steps:
1782+
<p>The
1783+
<dfn constructor for=AbortController lt="AbortController()"><code>new AbortController()</code></dfn>
1784+
constructor steps are:
17841785

17851786
<ol>
17861787
<li><p>Let <var>signal</var> be a new {{AbortSignal}} object.
17871788

1788-
<li><p>Let <var>controller</var> be a new {{AbortController}} object whose
1789-
<a for=AbortController>signal</a> is <var>signal</var>.
1790-
1791-
<li><p>Return <var>controller</var>.
1789+
<li><p>Set <a>this</a>'s <a for=AbortController>signal</a> to <var>signal</var>.
17921790
</ol>
17931791

1794-
<p>The <dfn attribute for=AbortController><code>signal</code></dfn> attribute's getter, when
1795-
invoked, must return <a>this</a>'s <a for=AbortController>signal</a>.
1792+
<p>The <dfn attribute for=AbortController><code>signal</code></dfn> getter steps are to return
1793+
<a>this</a>'s <a for=AbortController>signal</a>.
17961794

1797-
<p>The <dfn method for=AbortController><code>abort()</code></dfn> method, when invoked, must
1795+
<p>The <dfn method for=AbortController><code>abort()</code></dfn> method steps are to
17981796
<a for=AbortSignal>signal abort</a> on <a>this</a>'s <a for=AbortController>signal</a>.
17991797

18001798

@@ -1840,8 +1838,8 @@ requirements to react in a reasonable way to {{AbortController/abort()}}. For ex
18401838
[=AbortSignal/aborted flag=] might need to be propagated to a cross-thread environment, such as a
18411839
service worker.
18421840

1843-
<p>The <dfn attribute for=AbortSignal>aborted</dfn> attribute's getter, when invoked, must return
1844-
true if <a>this</a>'s [=AbortSignal/aborted flag=] is set, and false otherwise.
1841+
<p>The <dfn attribute for=AbortSignal>aborted</dfn> getter steps are to return true if <a>this</a>'s
1842+
[=AbortSignal/aborted flag=] is set; otherwise false.
18451843

18461844
<p>The <dfn attribute for=AbortSignal><code>onabort</code></dfn> attribute is an
18471845
<a>event handler IDL attribute</a> for the <dfn export for=AbortSignal><code>onabort</code></dfn>

0 commit comments

Comments
 (0)