W3C home > Mailing lists > Public > www-style@w3.org > July 2008

Re: [CSS 2.1] General at-blocks and error recovery

From: Zack Weinberg <zweinberg@mozilla.com>
Date: Wed, 30 Jul 2008 14:15:20 -0700
To: www-style@w3.org
Message-ID: <20080730141520.304882b8@trurl>

Bert Bos <bert@w3.org> wrote:
> In the case of '@1; div {color: green}', the longest initial sequence
> of tokens is: DELIM (@) + NUMBER (1). We thus replace the ";" with
> the character BEL (ASCII 7). Then the input parses, viz., as a
> ruleset. The selector of that ruleset is obviously not valid, because
> neither "@" nor BEL can occur in selectors, and thus the ruleset is
> ignored.

I don't have a suggestion for precise language, but I am really
uncomfortable with an error recovery rule that can discard tokens past a
top-level semicolon.  My preferred outcome for "@1; div { color:green }"
would be for the "@1;" to be ignored and the "div { color:green }"
considered a ruleset with a valid selector, namely "div".

zw
Received on Wednesday, 30 July 2008 21:16:43 GMT

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