W3C home > Mailing lists > Public > public-css-archive@w3.org > April 2017

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

From: Simon Pieters via GitHub <sysbot+gh@w3.org>
Date: Wed, 19 Apr 2017 13:58:58 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-295279801-1492610337-sysbot+gh@w3.org>
We can't use a union type of `DOMString or USVString` because they are both string types and union types must be [distinguishable](https://heycam.github.io/webidl/#dfn-distinguishable).

But we can typedef to only `USVString` and say in prose that it is conforming to use `DOMString` instead (or vice versa).

-- 
GitHub Notification of comment by zcorpan
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1217#issuecomment-295279801 using your GitHub account
Received on Wednesday, 19 April 2017 13:59:05 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:11 UTC