Re: [web-nfc] Improve parsing smart poster: add missing steps (#536)

This line IIUC is for reading/parsing smart poster records from NFC tags.
What I'm saying is that we should raise validation errors when web developers try to write a smart-poster without a URL record to a NFC tag.

```js
const writer = new NDEFWriter();
writer.write({ records: [
  {
    recordType: "smart-poster",
    data: { records: []}
  }
]}).catch(error => {
// This should raise a validation error!
});
```

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

Received on Monday, 10 February 2020 09:37:14 UTC