[web-nfc] "typedef DOMString NDEFRecordType" is expected to be case sensitive or not? (#331)

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

== "typedef DOMString NDEFRecordType" is expected to be case sensitive or not? ==
I feel the record type string should always be treated as case insensitive, 
  External type strings: of course we treat them as case insensitive, based on nfc forum spec.
  other type strings:  '`TExt`', '`teXT`'  ==> '`text`', '`JSON`', '`Json`', '`jSoN`' ==> '`json`', etc.

WDYT? If it makes sense to you, we'd better put a sentence describing the 'case insensitive' thing around https://w3c.github.io/web-nfc/#the-ndefrecordtype-string.

Then, for simple impl in Chromium, I'd consider transforming the input NDEFRecordType (`NDEFRecordInit#recordType`, `NFCScanOptions#recordType`) to lower case in the first place.


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

Received on Tuesday, 3 September 2019 03:13:03 UTC