Re: [selectors] Attribute Selector Values Beginning with Digits

Lachlan Hunt wrote:
>   For the attribute value selectors, is it required that values 
> beginning with digits must either be quoted or the first digit escaped? 

Yes.  See 
http://www.w3.org/TR/2005/WD-css3-selectors-20051215/#attribute-representation 
and http://www.w3.org/Style/Group/css2-src/selector.html#q10 and 
http://www.w3.org/TR/CSS2/selector.html#q10 all of which have the same language 
after the list of the four attribute selectors:

   Attribute values must be identifiers or strings.

Since 0 is not an identifier, the selector [title=0] is invalid and a conforming 
UA must discard the corresponding rule.

-Boris

Received on Tuesday, 7 February 2006 16:58:24 UTC