Re: [web-nfc] scan() should validate NDEFScanOptions#{recordType,mediaType} (#437)

Re-reading "Dispatching NFC content" algorithm below suggests that an NDEF message will matches only if it contains a url record and a record with dummy-id. It may be the same record, but not necessary.

> For each NDEFReader instance reader in the activated reader objects, run the following sub-steps:
> 
> 1. If reader.[[Id]] is present and it is not equal to any record's id where record is an element of message, continue.
> 2. If reader.[[RecordType]] is present and it is not equal to any record's recordType where record is an element of message, continue.
> 3. If reader.[[MediaType]] is not "" and it is not equal to any record's mediaType where record is an element of message, continue.
> 4. Fire an event named "reading" at reader using NDEFReadingEvent with its serialNumber attribute initialized to serialNumber and message attribute initialized to message.

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

Received on Wednesday, 27 November 2019 07:40:31 UTC