On 1/20/20 8:44 PM, Marcos Caceres wrote:
Is there a proposal to add this to the WebIDL spec
In the IDL spec, the USVString type is representation-agnostic: it's Unicode on the IDL side, and doesn't say whether you represent Unicode as UTF-16, UTF-8, UTF-7, UCS-32, or whatever. So it doesn't really make sense to add this to the IDL spec...
My worry is having to keep IDL from specs and internal in sync (not a big deal, but always nice to have a single source of truth).
Indeed. There has been some discussion in #content about automatically deciding whether to use UTF-8 or UTF-16 for USVString based on ... something, but it's not trivial to do, unfortunately.
-Boris _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform