IDL: special DOMString that converts to Unicode

There is quite a number of APIs that take a string and expect it to
not contain code unit garbage (lone surrogates):

* url / user / password arguments
* XMLHttpRequest.send() data argument
* XMLHttpRequest.responseText (though this one does not matter much)
* TextEncoder.encode() input argument
* Everything in
* WebSocket API
* A bunch of HTML attributes that set URLs.

I think we should introduce UTFString to make this conversion explicit
and not bother tons of standards with boilerplate language that is
easily forgotten.


Received on Friday, 26 October 2012 10:59:32 UTC