Skip to content

Commit ea613a0

Browse files
committed
Fail successive scan() invocations on readers
Signed-off-by: Zoltan Kis <[email protected]>
1 parent aa2c2f8 commit ea613a0

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

index.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3431,7 +3431,7 @@ <h3><dfn>Writing content</dfn></h3>
34313431
<li>
34323432
If |signal| is not `null`, then
34333433
<a data-cite="dom#abortsignal-abort-algorithms">
3434-
add the following <dfn>abort the pending scans</dfn> steps</a>
3434+
add the following <dfn>clean up the pending scan</dfn> steps</a>
34353435
to |signal|:
34363436
<ol>
34373437
<li>
@@ -3449,7 +3449,7 @@ <h3><dfn>Writing content</dfn></h3>
34493449
<ol>
34503450
<li>
34513451
If |p| was settled (fulfilled or rejected), then
3452-
<a>abort the pending scans</a>.
3452+
<a>clean up the pending scan</a>.
34533453
</li>
34543454
</ol>
34553455
</li>
@@ -3473,6 +3473,11 @@ <h3><dfn>Writing content</dfn></h3>
34733473
{{"NotReadableError"}} {{DOMException}}
34743474
and abort these steps.
34753475
</li>
3476+
<li>
3477+
If |reader| is already in the <a>activated reader objects</a>,
3478+
then reject |p| with a {{"InvalidStateError"}} {{DOMException}}
3479+
and abort these steps.
3480+
</li>
34763481
<li>
34773482
Add |reader| to the <a>activated reader objects</a>.
34783483
</li>

0 commit comments

Comments
 (0)