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>


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.

Received on Wednesday, 15 January 2003 11:12:13 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:05 UTC