CSS id selector with embedded dot
David Grieve
david.grieve at oracle.com
Wed May 10 17:09:05 UTC 2017
Fair enough.
The CSS Reference Guide says " While the JavaFX CSS parser will parse
valid CSS syntax, it is not a fully compliant CSS parser." Escaped
characters is a case in point.
On 5/10/17 11:10 AM, Doswald Michael wrote:
> 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