W3C home > Mailing lists > Public > www-validator-css@w3.org > March 2008

Re: Malformed declarations incorrectly parsed?

From: Benjamin Hawkes-Lewis <bhawkeslewis@googlemail.com>
Date: Fri, 14 Mar 2008 11:17:30 +0000
Message-ID: <47DA5ECA.40905@googlemail.com>
To: Yves Lafon <ylafon@w3.org>
CC: www-validator-css@w3.org

Yves Lafon wrote:
> Yes, in case of error, the current behaviour is to skip until a matching 
> brace. This might be changed in the future, but is part of a more 
> general discussion about: "Should a _validator_ do error recovery like 
> other UA like browsers, or not? The same apply for the examples below.

Whatever the tool does needs to be consistent and explained. From the 
erroneous input:

p {unknown: red; color: green;}

The validator extracts color: green; as valid CSS information, rather 
than dropping the rule set.

In the spec examples:

(a) p { color:green; color }

(b) p { color:green; color: }

(c) p { color:red;   color:; color:green }

It does not drop the entire rule set, but instead reports color: green; 
in all cases and color: red; in (c).

Benjamin Hawkes-Lewis
Received on Friday, 14 March 2008 11:18:12 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:01:01 UTC