@@ -979,11 +979,11 @@ <h4>
979
979
980
980
< section > < h3 > Feature support</ h3 >
981
981
< p >
982
- Detecting if Web NFC is supported can be done by checking NDEFReader
983
- objects . Note that this does not guarantee that NFC hardware is available.
982
+ Detecting if Web NFC is supported can be done by checking the {{ NDEFReader}}
983
+ object . Note that this does not guarantee that NFC hardware is available.
984
984
</ p >
985
985
< pre class ="example ">
986
- if ('NDEFReader' in window) { /* ... Scan or write NDEF Tags */ }
986
+ if ('NDEFReader' in window) { /* ... Scan and write NDEF Tags */ }
987
987
</ pre >
988
988
</ section >
989
989
@@ -1977,9 +1977,9 @@ <h2>The <dfn>record type</dfn> string</h2>
1977
1977
< section > < h2 > The NDEFReader object</ h2 >
1978
1978
< p >
1979
1979
The < dfn > NDEFReader</ dfn > is an object that exposes NFC functionality to the
1980
- < a > browsing context</ a > : reading data when a device, such as a tag, is within
1981
- the magnetic induction field. Also, it is used for writing
1982
- < a > NDEF message </ a > s to < a > NFC tag</ a > s within range.
1980
+ < a > browsing context</ a > : reading < a > NDEF messages </ a > when a device, such
1981
+ as a tag, is within the magnetic induction field. Also, it is used for
1982
+ writing < a > NDEF messages </ a > to < a > NFC tag</ a > s within range.
1983
1983
</ p >
1984
1984
< pre class ="idl ">
1985
1985
typedef (DOMString or BufferSource or NDEFMessageInit) NDEFMessageSource;
@@ -1988,8 +1988,8 @@ <h2>The <dfn>record type</dfn> string</h2>
1988
1988
interface NDEFReader : EventTarget {
1989
1989
constructor();
1990
1990
1991
- attribute EventHandler onreadingerror;
1992
1991
attribute EventHandler onreading;
1992
+ attribute EventHandler onreadingerror;
1993
1993
1994
1994
Promise<undefined> scan(optional NDEFScanOptions options={});
1995
1995
Promise<undefined> write(NDEFMessageSource message,
@@ -2030,10 +2030,6 @@ <h2>The <dfn>record type</dfn> string</h2>
2030
2030
have one and some tags even create a random number on each read.
2031
2031
The serial number usually consists of 4 or 7 numbers, separated by `:`.
2032
2032
</ p >
2033
- < p >
2034
- The < dfn > NDEFReader</ dfn > is an object used for reading or writing data when
2035
- a device, such as a tag, is within the magnetic induction field.
2036
- </ p >
2037
2033
< p >
2038
2034
An {{NDEFReader}} object has the following < a data-cite =
2039
2035
"ECMASCRIPT#sec-object-internal-methods-and-internal-slots ">
0 commit comments