Re: [csswg-drafts] [cssom][all specs defining IDL] Consider USVString instead of DOMString, replacing surrogates with U+FFFD

Additional note about `&str` for CSS WG members who don't program in Rust yet:

Since `&str` is the Rust native way of looking at text, being able to use it is very valuable. It means that the style system can call into other Rust code built with the usual Rust assumptions about in-memory data that has textual interpretation.

Preserving unpaired surrogates would mean giving up on the Rust native way of representing in-memory textual data and fighting the Rust ecosystem when it comes to calling into other code, etc.


-- 
GitHub Notification of comment by hsivonen
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1217#issuecomment-293862546 using your GitHub account

Received on Thursday, 13 April 2017 11:21:46 UTC