Re: Error Parsing

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 UTC