W3C home > Mailing lists > Public > www-style@w3.org > October 2004

Re: Error Parsing

From: Ian Hickson <ian@hixie.ch>
Date: Sat, 23 Oct 2004 16:15:56 +0000 (UTC)
To: Christian Roth <roth@visualclick.de>
Cc: www-style Mailing List <www-style@w3.org>
Message-ID: <Pine.LNX.4.61.0410231610560.26459@dhalsim.dreamhost.com>

On Sat, 23 Oct 2004, Christian Roth wrote:
>>> 
>>> p {
>>>   color: red;
>>>   /*
>>>   font-size: 12pt;
> 
> The tokenization sequence at this point is:
> 
>  ; 
>  DELIM(/) 
>  DELIM(*) 
>  IDENT(font-size) 
>  :

That's mostly because the grammar in the CSS2.1 draft doesn't really 
handle the error correction for unexpected EOF cases. A comment really 
should be defined as starting with "/*" and ending with "*/" _or_ the EOF. 
Similarly for other things like blocks, matched parentheses, etc.

This is currently not defined in CSS2.1, but hopefully CSS3 Syntax will 
clarify it.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Saturday, 23 October 2004 16:15:59 GMT

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