[web-nfc] Inconsistency in handling Id (#488)

zolkis has just created a new issue for https://github.com/w3c/web-nfc:

== Inconsistency in handling Id ==
@leonhsl observed [here](https://github.com/w3c/web-nfc/pull/481#discussion_r361048495):

> I noticed there's some inconsistency in defining `Id`.
> 
> First we need to decide `Id` should initially be `undefined` or `An empty string`, then we need to update the following 3 places to be consistent:
> 
>     1. https://w3c.github.io/web-nfc/#the-ndefscanoptions-dictionary
> 
> 
> > dictionary NDEFScanOptions {
> > USVString id;
> > USVString recordType;
> > USVString mediaType = "";
> > AbortSignal? signal;
> > };
> 
>     1. https://w3c.github.io/web-nfc/#dom-ndefscanoptions-id
> 
> 
> > If the dictionary member is not present, then it will be ignored by the NFC listen algorithm.
> 
>     1. **here, this matching algorithm**.



Please view or discuss this issue at https://github.com/w3c/web-nfc/issues/488 using your GitHub account

Received on Tuesday, 24 December 2019 09:23:18 UTC