Re: [web-nfc] local types need some prefix of a kind (#375)

I'm not a huge fan of this flag but that seems to be the only option we'd have if we want to make Web NFC fully compliant with existing tags out there that may have "text" local type records in external records.

```js
const record = externalRecord.toRecords()[0];
if (record.recordType == "text") {
  // Is it a TEXT record or a local type "text" record?
  // Let's check additional property `isLocalRecord`
  if (record.isLocalRecord) {
    // It's a local type "text" record
  } else {
    // It's a TEXT record, let's use record.lang,
  }
}
```

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

Received on Wednesday, 18 December 2019 12:18:29 UTC