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

> I found:
> 
> > If the attribute value is the empty string (lang=""), the language is set to unknown; if the language tag is not valid according to BCP47, it is set to invalid.
> 
> I believe most NDEF APIs defaults to en-US but will have to check. Ah actually this is what Android does:
> 
> ![image](https://user-images.githubusercontent.com/1101339/66890735-61466d00-efe7-11e9-883f-1553a9cf66f7.png)

That's what I meant. There are no IDL defaults (e.g. `lang = "en-uS"`). What do you recommend?

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

Received on Wednesday, 16 October 2019 05:41:02 UTC