[web-nfc] Handling NDEF record's PAYLOAD field is not present (#541)

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

== Handling NDEF record's PAYLOAD field is not present ==
In [Parsing NDEF records](https://w3c.github.io/web-nfc/#parsing-ndef-records), all record types valid following step except the empty record:
> If ndefRecord's PAYLOAD field is not present, set record's data to null and return record.

But looks like only empty record's payload field is not present, and spec also doesn't allow constructing null data for all record types, so shall we throw error here?

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

Received on Tuesday, 11 February 2020 09:41:01 UTC