- From: Guillaume via GitHub <sysbot+gh@w3.org>
- Date: Mon, 23 Oct 2023 12:53:56 +0000
- To: public-css-archive@w3.org
> I think Typed OM can avoid "filter code points" [when creating `new CSSKeywordValue("a\u0000b")`]
I cannot find where it is defined in CSS Typed OM, that `CSSKeywordValue.toString()` uses *serialize an identifier*.
However I recently learned that `CSSKeyframesRule.name` is supposed to accept any non-empty input (#9363), unlike `animation-name`, which is restricted to custom idenfiers and strings, and CSSOM uses *serialize an identifier* to serialize `CSSKeyframesRule.name` while [serializing `CSSKeyframesRule.cssText`](https://drafts.csswg.org/cssom-1/#ref-for-csskeyframesrule).
The bottom line is that *serialize an identifier* also replaces U+0000, for convenience, to serialize a user input specified via JS and that was not parsed as a CSS value, therefore I am closing this issue.
--
GitHub Notification of comment by cdoublev
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8074#issuecomment-1775129733 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 23 October 2023 12:53:58 UTC