You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: EXPLAINER.md
+28Lines changed: 28 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -258,6 +258,34 @@ From speaking about the feature at multiple events over the years, it is clear
258
258
that web developers have been quite positive about the ability to use NFC from
259
259
the web.
260
260
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
+
261
289
## References & acknowledgements
262
290
263
291
Thanks to Jeffrey Yasskin, Anne van Kesteren, Anssi Kostiainen, Domenic
0 commit comments