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

https://github.com/w3c/web-nfc/issues/437#issuecomment-550222603 reminds me to read [Dispathcing NFC content](https://w3c.github.io/web-nfc/#dispatching-nfc-content) carefully and now I feel the algorithm is incorrect.

Consider we have a scan options `{id: 'dummy-id', recordType: 'url'}`, my understanding (intuitive feeling) is that a message matches only if it contains a `url` record with `dummy-id`, but the current algorithm suggests that a message containing a whatever (`text`, `unknown` etc.) type record with `dummy-id` will just match.

This is sort of a surprise to me, and I'd like to know opinions from all. @beaufortfrancois @kenchris @riju

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

Received on Wednesday, 27 November 2019 06:47:03 UTC