CSS id selector with embedded dot

Doswald Michael Michael.Doswald at schiller.ch
Wed May 10 15:10:00 UTC 2017

On 5/10/17 2:02 PM, David Grieve wrote:
> Having an id with a dot is not valid CSS syntax.
> From the spec: " An ID selector contains a "number sign" (U+0023, #) 
> immediately followed by the ID value, which must be an CSS identifiers."
> An identifier is defined here: 
> https://www.w3.org/TR/CSS21/syndata.html#value-def-identifier. The tldr; 
> is that an identifier cannot contain a dot.

But in the link you referenced it says:

"Identifiers can also contain escaped characters and any ISO 10646 character as a numeric code (see next item). For instance, the identifier "B&W?" may be written as "B\&W\?" or "B\26 W\3F"."

Wouldn't that include an escaped dot as a valid character for a CSS identifier?

More information about the openjfx-dev mailing list