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

Zack Weinberg wrote:
> 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".

Filed as CSS2.1 Issue 106:
   http://wiki.csswg.org/spec/css2.1#issue-106
Relates to CSS2.1 Issue 102.
   http://wiki.csswg.org/spec/css2.1#issue-102

~fantasai

Received on Monday, 23 February 2009 23:58:37 UTC