W3C home > Mailing lists > Public > www-style@w3.org > April 2013

[css-syntax] declaration error handling

From: Rune Lillesveen <rune@opera.com>
Date: Tue, 30 Apr 2013 14:14:59 +0200
To: "www-style list" <www-style@w3.org>
Message-ID: <op.wwcsa9tu8isf1p@rune-optiplex-980>
In "5.5.4. Consume a list of declarations" of the current ED you have:

"anything else:

  This is a parse error. Repeatedly consume the next input token until it  
is a semicolon token or EOF token."

Should this have been: "... Repeatedly consume a component value ..." in  
order to match blocks correctly?

For instance:

   * { # {; color: red; } }

The hash ends up as "anything else". If you simply consume the next input  
tokens, it means the first semi-colon inside the inner block will be the  
end of the declaration, which is wrong.

Rune Lillesveen
Received on Tuesday, 30 April 2013 12:15:33 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:29 UTC