- From: fantasai <fantasai.lists@inkedblade.net>
- Date: Wed, 25 Jul 2007 03:36:34 -0400
- 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;}
>
> Should be replaced by (reverted to):
>
> "@charset " {return CHARSET_SYM;}
>
> Because of the special rule for @charset in [CSS21, 4.4]
> <http://www.w3.org/TR/2007/CR-CSS21-20070719/syndata.html#x57>:
>
>> @charset must be written literally, i.e., the 10 characters
>> '@charset "' (lowercase, no backslash escapes), followed by the
>> encoding name, followed by '";'.
>
> BTW, the wording about 10 characters '@charset "' is another problem,
> because current grammar allows the '@charset ' to be followed by
> either " or ' symbol:
>
> stylesheet
> : [ CHARSET_SYM STRING ';' ]?
> [S|CDO|CDC]* [ import [S|CDO|CDC]* ]*
> [ [ ruleset | media | page ] [S|CDO|CDC]* ]*
> ;
>
> where STRING is can be quoted as either "string1" or 'string2'.
Thanks! I've added your issues to the issues list.
http://csswg.inkedblade.net/spec/css2.1
~fantasai
Received on Wednesday, 25 July 2007 07:36:41 UTC