@@ -2637,11 +2637,6 @@ <h3><dfn>Writing content</dfn></h3>
2637
2637
< a > recordType</ a > returns `false`, reject |promise| with a
2638
2638
{{TypeError}} and abort these steps.
2639
2639
</ li >
2640
- <!--
2641
- TODO: include clauses to fix
2642
- https://github.com/w3c/web-nfc/issues/546, i.e.
2643
- check SP size and action records payload size.
2644
- -->
2645
2640
< li >
2646
2641
Return the result of running
2647
2642
< a > map local type to NDEF</ a > given |record|, |ndef| and
@@ -3197,6 +3192,19 @@ <h3><dfn>Writing content</dfn></h3>
3197
3192
Set |ndef|'s < a > TYPE field</ a > to |localTypeName|, representing the
3198
3193
< a > local type name</ a > .
3199
3194
</ li >
3195
+ < li >
3196
+ If |context| is `"smart-poster"`, |localTypeName| is
3197
+ < strong > "`s`" (`0x73`)</ strong > and if the type of
3198
+ |record|'s < a > data</ a > is not {{BufferSource}} or its byte length
3199
+ is bigger than 4, [= exception/throw =] a {{TypeError}} and abort these steps.
3200
+ </ li >
3201
+ < li >
3202
+ If |context| is `"smart-poster"`, |localTypeName| is
3203
+ < strong > "`act`" (`0x61` `0x63` `0x74`) </ strong > and if the type of
3204
+ |record|'s < a > data</ a > is not {{BufferSource}} or its byte length
3205
+ is not exactly one, [= exception/throw =] a {{TypeError}} and abort
3206
+ these steps.
3207
+ </ li >
3200
3208
< li >
3201
3209
If the type of a |record|'s < a > data</ a > is {{BufferSource}},
3202
3210
< ol >
@@ -3232,10 +3240,6 @@ <h3><dfn>Writing content</dfn></h3>
3232
3240
</ li >
3233
3241
</ ol >
3234
3242
</ li >
3235
- <!--
3236
- TODO: clauses to fix https://github.com/w3c/web-nfc/issues/546
3237
- check SP size and action records payload size.
3238
- -->
3239
3243
< li >
3240
3244
Return |ndef|.
3241
3245
</ li >
0 commit comments