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

As an FYI, `typedef USVString CSSOMString` made its way into web-platform-tests in https://github.com/w3c/web-platform-tests/pull/6982, and just like an implementation the IDL can only say one thing here, not "this *or* that." Fortunately idlharness.js doesn't automatically exercise the difference between DOMString and USVString and actually can't because one needs to understand the API under test to know where the converted string ends up to read it back.

And this does mean that tests like https://github.com/w3c/web-platform-tests/blob/master/html/dom/usvstring-reflection.html will be impossible to add for CSSOM.

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

Received on Monday, 7 May 2018 09:38:24 UTC