Re: Malformed declarations incorrectly parsed?

Yves Lafon wrote:
> The tool is consistent... but it depends on the error case. Lexical 
> errors are handled with a skip to matching brace,

That doesn't appear to be true.

p { color:red; color:; color:green }

includes a lexical error since "color:;" cannot be parsed as "property 
':' S* expr prio?" from:

The validator calls it a "parse error".

If what you were saying were true, the validator would skip to the 
matching brace, but instead it reports color: green; as valid CSS 

> Clearly, "skip to matching brace" is useful to recover, but not 
> in line with the error recovery scheme of the CSS21 spec.

I can see the utility of having no error recovery and I can see the 
utility of having the error recovery mandated by the spec. I'm hazy on 
the merits of having a second, undocumented form of error recovery that 
differs from the spec. It renders the report of "valid CSS information" 

Benjamin Hawkes-Lewis

Received on Saturday, 15 March 2008 01:21:47 UTC