lacks descriptions about how to wrap a DOMString or BufferSource to create an NDEFMessage.
4.3 description is wrong:
If message is of type NDEFMessageInit and its id is not null:
It seems to me the spec wants to say NDEFRecord#id is null when NDEFRecordInit#id is not provided, if so, please change NDEFRecord interface definition to reflect it, i.e. add '?' suffix.
https://w3c.github.io/web-nfc/#creating-ndef-message
DOMString
orBufferSource
to create anNDEFMessage
.NDEFRecord#id
is null whenNDEFRecordInit#id
is not provided, if so, please changeNDEFRecord
interface definition to reflect it, i.e. add '?' suffix.