Re: class / ident / numbers

Michael Day wrote to <mailto:www-style@w3.org> on 18 April 2003 in "class /
ident / numbers" 
(<mid:Pine.LNX.4.44.0304181707540.24737-100000@lorien.yeslogic.com>):

> The CSS3 Selectors test cases state that this is not a valid class
> selector:
> 
> .\5cm { ... }

I'm assuming that you're writing of test #155, "Syntax and Parsing",
<http://www.w3.org/Style/CSS/Test/CSS3/Selectors/current/html/tests/css3-mod
sel-155.html>. (A URI would have made your intent clear.)

The test does not claim that {.\5cm} is an invalid selector. The test claims
that {.\5cm} must not match the class 5cm .

> What have I overlooked?

You have overlooked escape sequences. The three-character sequence {\5c}
represents a single character: U+005C, reverse solidus (also known as
backslash). So the selector {.\5cm} matches the class \m .

-- 
Etan Wexler <mailto:ewexler@stickdog.com>.
This message goes out to the Crucial Three.

Received on Friday, 18 April 2003 07:07:32 UTC