[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-openjfx-dev
Subject:    Re: CSS id selector with embedded dot
From:       David Grieve <david.grieve () oracle ! com>
Date:       2017-05-10 17:09:05
Message-ID: 6397508c-a41b-780f-b2f1-2f3a119316af () oracle ! com
[Download RAW message or body]

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?
> 
> 
> 
> 
> 
> 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic