Re: [web-nfc] Should we ignore NDEFMessage.serialNumber for NFCWriter::push()? (#224)

Two types of message may make it confusing for developers. As the |serialNumber| is only meaningful to NFCReadingEvent, how about move the this attribute to this event, making the NDEFMessage more clean.
interface NFCReadingEvent : Event {
  DOMString serialNumber;
  readonly attribute NDEFMessage message;
};

dictionary NDEFMessage {
  sequence<NDEFRecord> records;
  USVString url;
};

I think |serialNumber|  maybe don't need to be nullable because string can be empty.
Is it definite to rename NDEFMessage to NFCMessage?

-- 
GitHub Notification of comment by DonnaWuDongxia
Please view or discuss this issue at https://github.com/w3c/web-nfc/issues/224#issuecomment-495503421 using your GitHub account

Received on Friday, 24 May 2019 07:28:19 UTC