- is legal to start identifiers in CSS3 now

David Hyatt hyatt at apple.com
Tue Sep 2 14:32:25 CEST 2003


The WG agreed that - is now legal, and the grammar has been amended for 
CSS3.  Here is the change.  With this change, you can replace all the 
"\2d " in your html.css and quirk.css with "-".

-------------- next part --------------
Index: tokenizer.flex
===================================================================
RCS file: /local/home/cvs/Labyrinth/WebCore/khtml/css/tokenizer.flex,v
retrieving revision 1.3
retrieving revision 1.2
diff -u -r1.3 -r1.2
--- tokenizer.flex	2003/07/24 22:07:45	1.3
+++ tokenizer.flex	2003/04/10 16:52:34	1.2
@@ -11,7 +11,7 @@
 string1         \"([\t !#$%&(-~]|\\{nl}|\'|{nonascii}|{escape})*\"
 string2         \'([\t !#$%&(-~]|\\{nl}|\"|{nonascii}|{escape})*\'
 
-ident           {nmstart}{nmchar}*
+ident           -?{nmstart}{nmchar}*
 name            {nmchar}+
 num             [0-9]+|[0-9]*"."[0-9]+
 string          {string1}|{string2}
-------------- next part --------------


dave


More information about the Khtml-devel mailing list