Re: "." in class selectors where class names have special characters

On 12/27/11 4:43 PM, Peng Yu wrote:
> Hi,
>
> http://www.w3.org/TR/CSS2
>
> The above document doesn't explain what characters are allowed when
> "." is used as the class selectors. For example,
>
> <div class="100.100"></div>
>
> Selecting the above element by div.100.100 seems not to work.

div.100\.100 should work fine.  This is covered in the spec you linked to.

-Boris

Received on Tuesday, 27 December 2011 23:32:13 UTC