- From: fantasai <fantasai.lists@inkedblade.net>
- Date: Mon, 23 Feb 2009 15:57:57 -0800
- To: Zack Weinberg <zweinberg@mozilla.com>
- CC: www-style@w3.org, Bert Bos <bert@w3.org>
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