Re: [csswg-drafts] [cssom] Always return escaped idents? (#12258)

Yeah, we're unfortunately inconsistent about this. :/

The distinguishing factor is *usually* that, if we don't *need* to invoke a CSS parser, we don't, and just get/set strings directly. But we're not incredibly consistent about when we don't need to invoke the CSS parser.

Anything that's just exposing a simple ident (and will never get more complicated) should just be giving the raw value and not invoking the parser. We can probably fix several of the newer at-rules to match that.

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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 10 June 2025 15:58:38 UTC