Skip to content

Commit bf7a613

Browse files
committed
New scans don't preempt pending scans
Signed-off-by: Zoltan Kis <[email protected]>
1 parent 3e5d134 commit bf7a613

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

index.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3437,11 +3437,17 @@ <h3><dfn>Writing content</dfn></h3>
34373437
</li>
34383438
<li>
34393439
If not currently executing in the currently active <a>top-level
3440-
browsing context</a>, then reject |p| with and
3440+
browsing context</a>, then reject |p| with an
34413441
{{"InvalidStateError"}} {{DOMException}} and return |p|.
34423442
</li>
34433443
<li>
3444-
Attempt to <a>abort a pending scan operation</a>.
3444+
If there is a <a>pending read tuple</a> |tuple|, then reject |p|
3445+
with an {{"InvalidStateError"}} {{DOMException}} and return |p|.
3446+
<p class="note">
3447+
Note that scans need to be explicitly aborted before a new scan
3448+
could be done, and this behavior is different from writes, which
3449+
automatically abort and replace pending writes.
3450+
</p>
34453451
</li>
34463452
<li>
34473453
Let |reader:NDEFReader| be the {{NDEFReader}} instance.

0 commit comments

Comments
 (0)