Re: [web-nfc] Is the external type validate part correct? (#642)

Scratch that. Basically we should add this note:

> The External Type Name MUST be formed by taking the domain name of the issuing organization, adding a colon, and then adding the type name as managed by the organization, all stored as ASCII.

Then our algorithm, should simply convert UTF-8 to an ASCII domain using https://url.spec.whatwg.org/#concept-domain-to-ascii (and I guess with beStrict to false [default]). Then if that fails, return false. The length check should be moved to the end, as that is for checked whether it will fit when writing.




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


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

Received on Monday, 27 June 2022 15:30:36 UTC