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

I am not against modifying the filtering so that if a filter has more than one property, a message is a match only if it contains at least one record that matches all of the filter properties. 

Other than that, should we have filter policy options (like to select on of the behaviors above)?
What are typical use cases of multi-property filters?
The current algo permits filters like "give me text records **or** media type with `application/json`.
Is that useful, when one could set 2 readers, one with text, one with media?
So Leon's suggestion makes sense to me.
@kenchris @beaufortfrancois ?


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

Received on Friday, 29 November 2019 07:02:05 UTC