Skip to content

Commit 8ae5979

Browse files
Add OT changes section to Explainer (#608)
* Add OT changes section to Explainer Signed-off-by: Zoltan Kis <[email protected]> Co-authored-by: François Beaufort <[email protected]>
1 parent 40d402d commit 8ae5979

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

EXPLAINER.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,34 @@ From speaking about the feature at multiple events over the years, it is clear
258258
that web developers have been quite positive about the ability to use NFC from
259259
the web.
260260

261+
## Changes done after Origin Trial (OT)
262+
263+
### Removed NDEF scan option for filtering
264+
265+
The OT feedback was the filtering feature was not needed very much, and applications
266+
can easily implement it.
267+
268+
### Merged NDEFWriter into NDEFReader
269+
270+
Once scan filtering was removed, there was no point in keeping separate objects
271+
for reading and writing NDEF tags. Hence `NDEFWriter.write` became
272+
`NDEFReader.write`.
273+
274+
### Removed NDEF write option for ignoring read
275+
276+
When a tag is written, it is also read. With merging the reading and writing
277+
objects, this option became unneeded. There is an [example](https://w3c.github.io/web-nfc/#handling-initial-reads-while-writing) included on how to ignore reads when writing.
278+
279+
### Replaced `onerror` with `onreadingerror`
280+
281+
Since the merge of `NDEFWriter` and `NDEFReader`, the former `onerror` event on
282+
`NDEFReader` still relates to scans, but it could be interpreted to be also
283+
relevant on writes, which is not the case. This change clarifies the error is
284+
only relevant for scans.
285+
286+
287+
These changes mark the [Chrome Origin Trial](https://developers.chrome.com/origintrials/#/view_trial/236438980436951041) complete.
288+
261289
## References & acknowledgements
262290

263291
Thanks to Jeffrey Yasskin, Anne van Kesteren, Anssi Kostiainen, Domenic

0 commit comments

Comments
 (0)