- From: Han Leon via GitHub <sysbot+gh@w3.org>
- Date: Wed, 06 Nov 2019 07:11:11 +0000
- To: public-web-nfc@w3.org
I also prefer simplicity. Take this scan options `{recordType: 'url', mediaType: 'text/plain'}` as an example, we have 2 choices for matching 'url' records (whose media type is always null): 1. ignore the careless user input (mediaType) and match all 'url' records. 2. do strictly, i.e. do not match any 'url' records. I'd prefer 1 because we are already aware that mediaType does not make any sense for 'url' records at all, if we do not notify users of the invalid input then we'd better not fail silently when matching. Either way, the spec needs to make a rule/note explicitly in the section of NDEFScanOptions definition. -- GitHub Notification of comment by leonhsl Please view or discuss this issue at https://github.com/w3c/web-nfc/issues/437#issuecomment-550177371 using your GitHub account
Received on Wednesday, 6 November 2019 07:11:13 UTC