W3C home > Mailing lists > Public > www-style@w3.org > December 2002

Re: CSS parser recovery

From: Ian Hickson <ian@hixie.ch>
Date: Sat, 14 Dec 2002 09:29:20 +0000 (GMT)
To: Tantek Çelik <tantek@cs.stanford.edu>
Cc: "www-style@w3.org" <www-style@w3.org>
Message-ID: <Pine.LNX.4.21.0212140925590.21095-100000@dhalsim.dreamhost.com>

On Sat, 14 Dec 2002, Tantek Çelik wrote:
> It is very simple, the spec simply provides no allowance for a block on the
> property side of the colon. [snip]

The bits you quote explain what the _valid_ syntax is.

We already know the syntax isn't valid, that's why we're looking at this
in the first place.

> Conclusion: 
> The spec allows for (nested) block(s) after an @rule, a selector, and in a
> value and nowhere else.

Sure. But if you find one there _anyway_, then you have to parse it a
nested block, because a declaration block is a block, and:

# A block starts with a left curly brace ({) and ends with the matching
# right curly brace (}). In between there may be any characters, except
# that parentheses (()), brackets ([]) and braces ({}) always occur in
# matching pairs and may be nested.

Ian Hickson                                      )\._.,--....,'``.    fL
"meow"                                          /,   _.. \   _\  ;`._ ,.
http://index.hixie.ch/                         `._.-(,_..'--(,_..'`-.;.'
Received on Saturday, 14 December 2002 04:29:22 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:04 UTC