W3C home > Mailing lists > Public > www-style@w3.org > July 2007

Re: [CSS21] New Candidate Recommendation

From: Bert Bos <bert@w3.org>
Date: Mon, 23 Jul 2007 15:33:59 +0200
Message-Id: <200707231533.59892.bert@w3.org>
To: Andrei Polushin <polushin@gmail.com>
Cc: www-style@w3.org

Andrei Polushin wrote:
> In [CSS21, G.2]
> <http://www.w3.org/TR/2007/CR-CSS21-20070719/grammar.html#scanner>:
> 
> The grammar rule:
> 
>     @{C}{H}{A}{R}{S}{E}{T}  {return CHARSET_SYM;}

I fully expected new errors to be found, but not quite within 48 
hours :-)

Yes, you're right. In the effort to make the grammar explicitly 
case-insensitive we went too far. '@charset' is indeed not 
case-sensitive.

Strictly speaking, it is not an error. The grammar accepts more than 
what's correct CSS 2.1 anyway. E.g., it also accepts 'color: 1em'. But I 
agree the grammar is confusing and can easily be improved.



Bert
-- 
   Bert Bos                                ( W 3 C ) http://www.w3.org/
   http://www.w3.org/people/bos                               W3C/ERCIM
   bert@w3.org                             2004 Rt des Lucioles / BP 93
   +33 (0)4 92 38 76 92            06902 Sophia Antipolis Cedex, France
Received on Monday, 23 July 2007 13:37:13 GMT

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