[heycam/webidl] Revamp ByteString, DOMString, and USVString (#335)

I think the goal should be to map these to

* byte sequence
* JavaScript string
* scalar value string

as defined in the Infra Standard. We'll most likely need to copy at the boundary for ByteString, but for DOMString and USVString that depends on the resolution of https://github.com/whatwg/infra/issues/91. Unless we get more opinions there I suspect we'll end up copying for all three, because that's most in line with how things are done (I realize this is not a great argument).

https://heycam.github.io/webidl/#dfn-obtain-unicode can be removed and any usage of it can use https://infra.spec.whatwg.org/#javascript-string-convert instead.

Existing issues here that we should be sure to take into account: #84, #141, and #236.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/issues/335

Received on Wednesday, 29 March 2017 13:54:28 UTC