W3C home > Mailing lists > Public > www-style@w3.org > January 2003

small errors in the CSS2.1 grammar

From: Lars Knoll <lars@trolltech.com>
Date: Wed, 15 Jan 2003 17:08:41 +0100
To: www-style@w3.org
Message-Id: <200301151708.41720.lars@trolltech.com>

Hi,

I have completely rewritten the CSS parser in khtml over the last months, and 
by this occasion I stumbled over a small errors in the CSS 2.1 grammar:

"!{w}important"         {return IMPORTANT_SYM;}
should be:
"!"{w}"important"         {return IMPORTANT_SYM;}

My version of flex doesn't seem to handle the comment specification correctly 
(the end of comments as eg "/***/" are not recognised for some reason), 
although the expression looks correct to me:

\/\*[^*]*\*+([^/][^*]*\*+)*\/   /* ignore comments */

In khtml, I've gone back to the CSS1 grammar for the definition of comments.

Cheers,
Lars
Received on Wednesday, 15 January 2003 11:12:13 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:19 GMT