webidl icon indicating copy to clipboard operation
webidl copied to clipboard

Revamp ByteString, DOMString, and USVString

Open annevk opened this issue 7 years ago • 0 comments

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.

annevk avatar Mar 29 '17 13:03 annevk