@@ -269,29 +269,29 @@ <h2>The NFC Standard</h2>
269
269
< p >
270
270
A note about the NDEF mapping can be found here:
271
271
< a href ="https://www.nxp.com/docs/en/application-note/AN1305.pdf ">
272
- MIFARE Classic as NFC Type MIFARE Classic Tag</ a >
272
+ MIFARE Classic as NFC Type MIFARE Classic Tag</ a > .
273
273
</ p >
274
274
< div >
275
275
< ol >
276
276
< li >
277
277
< dfn > NFC Forum Type 1</ dfn > : This tag is based on the ISO/IEC 14443-3A
278
278
(NFC-A). The tags are rewritable and can be
279
279
configured to become read-only. Memory size can be between `96` bytes and
280
- `2` Kbytes. Communication speed is `106` kbit/sec . In contrast to all other
280
+ `2` Kbytes. Communication speed is `106` kbit/s . In contrast to all other
281
281
types, these tags have no anti-collision protection for dealing with multiple
282
282
tags within the NFC field.
283
283
</ li >
284
284
< li >
285
285
< dfn > NFC Forum Type 2</ dfn > : This tag is based on the
286
286
ISO/IEC 14443-3A (NFC-A). The tags are rewritable and can be configured
287
287
to become read-only. Memory size can be between `48` bytes and `2` Kbytes.
288
- Communication speed is `106` kbit/sec .
288
+ Communication speed is `106` kbit/s .
289
289
</ li >
290
290
< li >
291
291
< dfn > NFC Forum Type 3</ dfn > : This tag is based on the Japanese Industrial
292
292
Standard (JIS) X 6319-4 (ISO/IEC 18092), commonly known as FeliCa. The tags are
293
293
preconfigured to be either rewritable or read-only. Memory is `2` kbytes.
294
- Communication speed is `212` kbit/sec or `424` kbit/s.
294
+ Communication speed is `212` kbit/s or `424` kbit/s.
295
295
</ li >
296
296
< li >
297
297
< dfn > NFC Forum Type 4</ dfn > : This tag is based on the ISO/IEC 14443-4 A/B
@@ -305,21 +305,21 @@ <h2>The NFC Standard</h2>
305
305
</ li >
306
306
< li >
307
307
< dfn > NFC Forum Type 5</ dfn > : This tag is based on ISO/IEC 15693 (NFC-V) and
308
- allows reading and writing an NDEF message on a ISO/IEC 15693 RF tag
308
+ allows reading and writing an NDEF message on an ISO/IEC 15693 RF tag
309
309
that is accessible by long range RFID readers as well. The NFC communication
310
310
is limited to short distance and may use the < i > Active Communication Mode</ i > of
311
311
ISO/IEC 18092 where the sending peer generates the field which balances
312
312
power consumption and improves link stability. Variable memory, up to `64` kbytes.
313
- Communication speed `26.48` kbit/s
313
+ Communication speed is `26.48` kbit/s.
314
314
</ li >
315
315
< li >
316
316
< dfn > MIFARE Standard</ dfn > : This tag, often sold under the brand names MIFARE
317
317
Classic or MIFARE Mini, is based on the ISO/IEC 14443-3A (also known as NFC-A,
318
318
as defined in ISO/IEC 14443-3:2011, Part 3: Initialization and anticollision).
319
319
The tags are rewritable and can be configured to become read-only. Memory size
320
- can be between `320` and `4` kbytes. Communication speed is `106` kbit/sec .
320
+ can be between `320` and `4` kbytes. Communication speed is `106` kbit/s .
321
321
< p class ="note ">
322
- < a > MIFARE Standard</ a > is a not an NFC Forum type and can only be read by devices
322
+ < a > MIFARE Standard</ a > is not an NFC Forum type and can only be read by devices
323
323
using NXP hardware. Support for reading and writing to tags based on the
324
324
< a > MIFARE Standard</ a > is thus non-nominative, but the type is included
325
325
due to the popularity and use in legacy systems.
499
499
The type information stored in the < a > TYPE field</ a > of
500
500
< a > well-known type records</ a > can be of two kinds:
501
501
< a href ="#well-known-local-types "> local types</ a >
502
- and < a href ="#well-known-global-types "> global types</ a >
502
+ and < a href ="#well-known-global-types "> global types</ a > .
503
503
</ p >
504
504
505
505
< section > < h4 > Well-known local types</ h4 >
874
874
Writing to an empty, but formatted < a > NFC tag</ a > .
875
875
</ li >
876
876
< li >
877
- Writing to an < a > NFC tag</ a > which already contains a
877
+ Writing to an < a > NFC tag</ a > which already contains an
878
878
< a > NDEF message</ a > .
879
879
</ li >
880
880
< li >
@@ -1304,8 +1304,8 @@ <h4>
1304
1304
},
1305
1305
{
1306
1306
recordType: "mime",
1307
- mediaType: "image/png"
1308
- data: getImageBytes(fromURL);
1307
+ mediaType: "image/png",
1308
+ data: getImageBytes(fromURL)
1309
1309
}
1310
1310
]
1311
1311
}
@@ -1384,7 +1384,7 @@ <h4>
1384
1384
< a > NDEF message</ a > .
1385
1385
</ p >
1386
1386
< p data-dfn-for ="NDEFMessageInit ">
1387
- The < dfn > NDEFMessageInit</ dfn > dictionary is used to initialize a
1387
+ The < dfn > NDEFMessageInit</ dfn > dictionary is used to initialize an
1388
1388
< a > NDEF message</ a > .
1389
1389
</ p >
1390
1390
</ section >
@@ -1523,7 +1523,7 @@ <h4>
1523
1523
< section >
1524
1524
< h2 > The < dfn > record type</ dfn > string</ h2 >
1525
1525
< p >
1526
- This string defines the allowed record types for a < a > NDEFRecord</ a > . The
1526
+ This string defines the allowed record types for an < a > NDEFRecord</ a > . The
1527
1527
[[[#data-mapping]]] section describes how it is mapped to
1528
1528
< a > NDEF record</ a > types.
1529
1529
</ p >
@@ -2680,7 +2680,7 @@ <h3><dfn>Writing content</dfn></h3>
2680
2680
2681
2681
< section > < h3 > Validating local type</ h3 >
2682
2682
< p >
2683
- To < dfn > validate local type</ dfn > given a |input:USVString| run
2683
+ To < dfn > validate local type</ dfn > given an |input:USVString| run
2684
2684
these steps:
2685
2685
</ p >
2686
2686
< ol class =algorithm id ="validate-local-type ">
@@ -2755,7 +2755,7 @@ <h3><dfn>Writing content</dfn></h3>
2755
2755
[= exception/throw =] a {{TypeError}} and abort these steps.
2756
2756
</ li >
2757
2757
< li >
2758
- If the type of |record|'s < a > data</ a > is not a {{DOMString}} or a
2758
+ If the type of |record|'s < a > data</ a > is not {{DOMString}} or
2759
2759
{{BufferSource}}, [= exception/throw =] a {{TypeError}} and abort
2760
2760
these steps.
2761
2761
</ li >
@@ -2978,7 +2978,7 @@ <h3><dfn>Writing content</dfn></h3>
2978
2978
and |ndef|, run these steps:
2979
2979
< ol class =algorithm data-link-for ="NDEFRecord ">
2980
2980
< li >
2981
- If the type of a |record|'s < a > data</ a > is not a
2981
+ If the type of a |record|'s < a > data</ a > is not
2982
2982
{{BufferSource}}, [= exception/throw =] a {{TypeError}}
2983
2983
and abort these steps.
2984
2984
</ li >
@@ -3035,7 +3035,7 @@ <h3><dfn>Writing content</dfn></h3>
3035
3035
[= exception/throw =] a {{TypeError}} and abort these steps.
3036
3036
</ li >
3037
3037
< li >
3038
- If the type of a |record|'s < a > data</ a > is not a
3038
+ If the type of a |record|'s < a > data</ a > is not
3039
3039
{{BufferSource}} or {{NDEFMessageInit}}, [= exception/throw =] a
3040
3040
{{TypeError}} and abort these steps.
3041
3041
</ li >
@@ -3048,7 +3048,7 @@ <h3><dfn>Writing content</dfn></h3>
3048
3048
< a > recordType</ a > .
3049
3049
</ li >
3050
3050
< li >
3051
- If the type of a |record|'s < a > data</ a > is a {{BufferSource}},
3051
+ If the type of a |record|'s < a > data</ a > is {{BufferSource}},
3052
3052
< ol >
3053
3053
< li >
3054
3054
Set |arrayBuffer| to |record|'s < a > data</ a > .
@@ -3069,7 +3069,7 @@ <h3><dfn>Writing content</dfn></h3>
3069
3069
</ ol >
3070
3070
</ li >
3071
3071
< li >
3072
- If the type of a |record|'s < a > data</ a > is a {{NDEFMessageInit}},
3072
+ If the type of a |record|'s < a > data</ a > is {{NDEFMessageInit}},
3073
3073
< ol >
3074
3074
< li >
3075
3075
Set the |ndef|'s < a > PAYLOAD field</ a > to the result of running
@@ -3098,7 +3098,7 @@ <h3><dfn>Writing content</dfn></h3>
3098
3098
[= exception/throw =] a {{TypeError}} and abort these steps.
3099
3099
</ li >
3100
3100
< li >
3101
- If the type of a |record|'s < a > data</ a > is not a
3101
+ If the type of a |record|'s < a > data</ a > is not
3102
3102
{{BufferSource}} or {{NDEFMessageInit}}, [= exception/throw =] a
3103
3103
{{TypeError}} and abort these steps.
3104
3104
</ li >
@@ -3116,7 +3116,7 @@ <h3><dfn>Writing content</dfn></h3>
3116
3116
< a > local type name</ a > .
3117
3117
</ li >
3118
3118
< li >
3119
- If the type of a |record|'s < a > data</ a > is a {{BufferSource}},
3119
+ If the type of a |record|'s < a > data</ a > is {{BufferSource}},
3120
3120
< ol >
3121
3121
< li >
3122
3122
Set |arrayBuffer| to |record|'s < a > data</ a > .
@@ -3137,7 +3137,7 @@ <h3><dfn>Writing content</dfn></h3>
3137
3137
</ ol >
3138
3138
</ li >
3139
3139
< li >
3140
- If the type of a |record|'s < a > data</ a > is a {{NDEFMessageInit}},
3140
+ If the type of a |record|'s < a > data</ a > is {{NDEFMessageInit}},
3141
3141
< ol >
3142
3142
< li >
3143
3143
Set the |ndef|'s < a > PAYLOAD field</ a > to the result of running
@@ -3166,7 +3166,7 @@ <h3><dfn>Writing content</dfn></h3>
3166
3166
[= exception/throw =] a {{TypeError}} and abort these steps.
3167
3167
</ li >
3168
3168
< li >
3169
- If the type of a |record|'s < a > data</ a > is not a
3169
+ If the type of a |record|'s < a > data</ a > is not
3170
3170
{{NDEFMessageInit}}, [= exception/throw =] a {{TypeError}}
3171
3171
and abort these steps.
3172
3172
</ li >
@@ -3655,19 +3655,19 @@ <h3>Parsing content</h3>
3655
3655
< dt > "`T`" (`0x54`)</ dt >
3656
3656
< ul >
3657
3657
< li >
3658
- running < a > parse an NDEF text record</ a > on |ndef|.
3658
+ Running < a > parse an NDEF text record</ a > on |ndef|.
3659
3659
</ li >
3660
3660
</ ul >
3661
3661
< dt > "`U`" (`0x55`)</ dt >
3662
3662
< ul >
3663
3663
< li >
3664
- running < a > parse an NDEF URL record</ a > on |ndef|
3664
+ Running < a > parse an NDEF URL record</ a > on |ndef|.
3665
3665
</ li >
3666
3666
</ ul >
3667
3667
< dt > "`Sp`" (`0x53` `0x70`)</ dt >
3668
3668
< ul >
3669
3669
< li >
3670
- running < a > parse an NDEF smart-poster record</ a > on |ndef|
3670
+ Running < a > parse an NDEF smart-poster record</ a > on |ndef|.
3671
3671
</ li >
3672
3672
</ ul >
3673
3673
</ dl >
@@ -3705,7 +3705,7 @@ <h3>Parsing content</h3>
3705
3705
3706
3706
< section > < h3 > Parsing NDEF well-known `T` records</ h3 >
3707
3707
< div >
3708
- To < dfn > parse an NDEF text record</ dfn > given a |ndefRecord| into a
3708
+ To < dfn > parse an NDEF text record</ dfn > given an |ndefRecord| into a
3709
3709
|record:NDEFRecord|, run these steps:
3710
3710
< ol class =algorithm data-link-for ="NDEFRecord ">
3711
3711
< li >
@@ -3745,7 +3745,7 @@ <h3>Parsing content</h3>
3745
3745
Set |record|'s < a > data</ a > to |buffer|.
3746
3746
</ li >
3747
3747
< li >
3748
- return |record|.
3748
+ Return |record|.
3749
3749
</ li >
3750
3750
</ ol > <!-- parsing NDEF text record -->
3751
3751
</ div >
@@ -3792,7 +3792,7 @@ <h3>Parsing content</h3>
3792
3792
3793
3793
< section > < h3 > Parsing NDEF well-known `U` records</ h3 >
3794
3794
< div >
3795
- To < dfn > parse an NDEF URL record</ dfn > given a |ndefRecord| into a
3795
+ To < dfn > parse an NDEF URL record</ dfn > given an |ndefRecord| into a
3796
3796
|record:NDEFRecord|, run these steps:
3797
3797
< ol class =algorithm data-link-for ="NDEFRecord ">
3798
3798
< li >
@@ -3832,15 +3832,15 @@ <h3>Parsing content</h3>
3832
3832
|record|'s < a > data</ a > to |buffer|.
3833
3833
</ li >
3834
3834
< li >
3835
- return |record|.
3835
+ Return |record|.
3836
3836
</ li >
3837
3837
</ ol > <!-- parsing NDEF URL record -->
3838
3838
</ div >
3839
3839
</ section >
3840
3840
3841
3841
< section > < h3 > Parsing NDEF well-known `Sp` records</ h3 >
3842
3842
< div >
3843
- To < dfn > parse an NDEF smart-poster record</ dfn > given a |ndefRecord| into a
3843
+ To < dfn > parse an NDEF smart-poster record</ dfn > given an |ndefRecord| into a
3844
3844
|record:NDEFRecord|, run these steps:
3845
3845
< ol class =algorithm data-link-for ="NDEFRecord ">
3846
3846
< li >
@@ -3861,15 +3861,15 @@ <h3>Parsing content</h3>
3861
3861
Set |record|'s < a > data</ a > to |buffer|.
3862
3862
</ li >
3863
3863
< li >
3864
- return |record|.
3864
+ Return |record|.
3865
3865
</ li >
3866
3866
</ ol > <!-- parsing NDEF smart-poster record -->
3867
3867
</ div >
3868
3868
</ section >
3869
3869
3870
3870
< section > < h3 > Parsing NDEF MIME type records</ h3 >
3871
3871
< div >
3872
- To < dfn > parse an NDEF MIME type record</ dfn > given a |ndefRecord| into a
3872
+ To < dfn > parse an NDEF MIME type record</ dfn > given an |ndefRecord| into a
3873
3873
|record:NDEFRecord|, run these steps:
3874
3874
< ol class =algorithm data-link-for ="NDEFRecord ">
3875
3875
< li >
@@ -3889,15 +3889,15 @@ <h3>Parsing content</h3>
3889
3889
Set |record|'s < a > data</ a > to |buffer|.
3890
3890
</ li >
3891
3891
< li >
3892
- return |record|.
3892
+ Return |record|.
3893
3893
</ li >
3894
3894
</ ol > <!-- parsing NDEF MIME type record -->
3895
3895
</ div >
3896
3896
</ section >
3897
3897
3898
3898
< section > < h3 > Parsing NDEF absolute-URL records</ h3 >
3899
3899
< div >
3900
- To < dfn > parse an NDEF absolute-URL record</ dfn > given a |ndefRecord| into
3900
+ To < dfn > parse an NDEF absolute-URL record</ dfn > given an |ndefRecord| into
3901
3901
a |record:NDEFRecord|, run these steps:
3902
3902
< ol class =algorithm data-link-for ="NDEFRecord ">
3903
3903
< li >
@@ -3914,15 +3914,15 @@ <h3>Parsing content</h3>
3914
3914
Set |record|'s < a > data</ a > to |buffer|.
3915
3915
</ li >
3916
3916
< li >
3917
- return |record|.
3917
+ Return |record|.
3918
3918
</ li >
3919
3919
</ ol > <!-- parsing NDEF absolute URI record -->
3920
3920
</ div >
3921
3921
</ section >
3922
3922
3923
3923
< section > < h3 > Parsing NDEF external type records</ h3 >
3924
3924
< div >
3925
- To < dfn > parse an NDEF external type record</ dfn > given a |ndefRecord| into
3925
+ To < dfn > parse an NDEF external type record</ dfn > given an |ndefRecord| into
3926
3926
a |record:NDEFRecord|, run these steps:
3927
3927
< ol class =algorithm data-link-for ="NDEFRecord ">
3928
3928
< li >
@@ -3941,15 +3941,15 @@ <h3>Parsing content</h3>
3941
3941
Set |record|'s < a > data</ a > to |buffer|.
3942
3942
</ li >
3943
3943
< li >
3944
- return |record|.
3944
+ Return |record|.
3945
3945
</ li >
3946
3946
</ ol > <!-- parsing NDEF external type record -->
3947
3947
</ div >
3948
3948
</ section >
3949
3949
3950
3950
< section > < h3 > Parsing NDEF unknown type records</ h3 >
3951
3951
< div >
3952
- To < dfn > parse an NDEF unknown record</ dfn > given a |ndefRecord| into a
3952
+ To < dfn > parse an NDEF unknown record</ dfn > given an |ndefRecord| into a
3953
3953
|record:NDEFRecord|, run these steps:
3954
3954
< ol class =algorithm data-link-for ="NDEFRecord ">
3955
3955
< li >
@@ -3967,7 +3967,7 @@ <h3>Parsing content</h3>
3967
3967
Set |record|'s < a > data</ a > to |buffer|.
3968
3968
</ li >
3969
3969
< li >
3970
- return |record|.
3970
+ Return |record|.
3971
3971
</ li >
3972
3972
</ ol > <!-- parsing NDEF unknown record -->
3973
3973
</ div >
0 commit comments