Re: [csswg-drafts] [css-syntax-3][css-values-4] definition of `<ident>` seems to require U+xxxx form (#6766)

> Or am I misunderstanding "represented as"?

You're misunderstanding - that's just talking about how we represent code points *in specs* when talking about them. The same sort of wording is used consistently across the Infra definitions, as Infra is defining the common language we should be using in spec writing for various concepts.

(I agree that jumping from the CSS spec to the Infra spec is a little bit of a conceptual twist as it's currently worded. Maybe it could use slightly more obvious wording?)

> (My original point in following this chain was to answer the question "can <ident> contain a space" and it seems it can contain anything including C0 and C1 control characters, noncharacter, etc which is surprising)

That *would* be surprising, since it's incorrect. ^_^ Are you basing that just on the "have a value composed of zero or more code points" phrase?

If you look slightly further down, in the railroad diagrams, the [`<ident-token>` grammar's diagram](https://drafts.csswg.org/css-syntax-3/#ident-token-diagram) makes it clear what code points are allowed. The normative answer for what's allowed in an ident, tho, is "whatever characters pass the ['starts an identifier'](https://drafts.csswg.org/css-syntax-3/#check-if-three-code-points-would-start-an-identifier) check and then subsequently are part of the return value of ['consume an identifier'](https://drafts.csswg.org/css-syntax-3/#consume-name)".

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


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

Received on Tuesday, 26 October 2021 23:46:09 UTC