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

I didn't find any locale/language/lang default parameter. We may want to not add IDL default but simply spec that "language" will be browser user agent locale if not specified. WDYT?

I've updated my API change suggestion above.



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

Received on Wednesday, 16 October 2019 05:27:26 UTC