W3C home > Mailing lists > Public > www-style@w3.org > December 2011

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

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 27 Dec 2011 18:31:40 -0500
Message-ID: <4EFA555C.6000907@mit.edu>
To: www-style@w3.org
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:47 GMT