Re: [web-nfc] What's the value of `toJSON()`? (#366)

> How about making optional `lang` (default to user agent default locale) and `encoding` (default to utf-8) and keeping `data` a string for "text" recordType?

These are supposed to be optional. I am not sure what other APIs do about default... browser default locale? Could you check. Also maybe add these examples to your above API change suggestion

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

Received on Tuesday, 15 October 2019 13:55:51 UTC