[web-nfc] NDEFRecord.data should return null rather than undefined (#462)

Honry has just created a new issue for https://github.com/w3c/web-nfc:

== NDEFRecord.data should return null rather than undefined ==
In following algorithms,
> 9.11.9.6 Parsing NDEF MIME type records
9.11.9.8 Parsing NDEF external type records
9.11.9.9 Parsing NDEF unknown type records

Spec says:
>  Let buffer be the byte sequence of ndefRecords's PAYLOAD field if that exists, or otherwise undefined.
Set record's data to buffer.

But per discussion in https://github.com/w3c/web-nfc/pull/441,  `null` is a more correct falsey value than `undefined` for an interface type.

Besides, setter of record's data is missing in empty record type's parser algorithm.
 

Please view or discuss this issue at https://github.com/w3c/web-nfc/issues/462 using your GitHub account

Received on Thursday, 12 December 2019 07:25:54 UTC