Re: [web-nfc] s/undefined/null/g for |buffer| when empty payload (#463)

According to the current spec text below, it is not clear to be honest.

> To parse an NDEF record given ndef into a record, run these steps:
> 1. **Set record's id to ndef's id.**
> 2. Set record's lang to null.
> 3. Set record's encoding to null.
> 4. If ndef's typeNameField (TNF field) is 0 (empty record):
> - 1. Set record's recordType to "empty".
> - 2. Set record's mediaType to null.

@zolkis @kenchris Do you have opinions?
I'll open a separate PR for this if we want to update spec if that's ok with you.

@Honry Does the current PR looks good to you?

-- 
GitHub Notification of comment by beaufortfrancois
Please view or discuss this issue at https://github.com/w3c/web-nfc/pull/463#issuecomment-564892022 using your GitHub account

Received on Thursday, 12 December 2019 07:53:24 UTC