Re: [web-nfc] Make tag read only (#558)

Ok. Maybe this could lead to some confusion for people that are not familiar with this.
Would it make sense to explicitly require a flag from the user that indicates this one-way usage?
This would be similar to the Web Blutooth API, where `requestDevice` explicitly requires an `acceptAllDevices: true` if no filters are set.

```javascript
const ndef = new NDEFReader();
try {
  await ndef.write({
    records: [{ recordType: "url", data: "https://w3c.github.io/web-nfc/" }]
  });
  await ndef.makeReadOnly({
    allowIrreversibleOperation: true
  });
} catch (e) {
  console.log("Something went wrong.", e);
};
```

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 30 August 2021 19:54:42 UTC