[Bug 4999] Validator fails to detect and report id selector starting with hyphen followed by a digit

http://www.w3.org/Bugs/Public/show_bug.cgi?id=4999





------- Comment #1 from info@gtalbot.org  2007-09-03 21:42 -------
Same findings with one testpage of the latest (August 4th 2007) CSS 2.1
testsuite:

URL:
http://www.w3.org/Style/CSS/Test/CSS2.1/current/html4/t040103-ident-03-c.htm

CSS validation: 
http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.w3.org%2FStyle%2FCSS%2FTest%2FCSS2.1%2Fcurrent%2Fhtml4%2Ft040103-ident-03-c.htm&warning=1&profile=css21&usermedium=all

Returned result from CSS validator reporting "Valid CSS Information":

#-1ident, .four {
color : red;
}

(...)

.-1ident, .five {
color : green;
} 

In both cases, the selectors starting with hyphen followed with a digit should
be detected, rejected and reported as parse errors.

Received on Monday, 3 September 2007 21:42:59 UTC