W3C home > Mailing lists > Public > www-style@w3.org > September 2010

Re: [CSS21][CSS3] Grammar Error

From: Jorrit Vermeiren <mercator+w3c@gmail.com>
Date: Thu, 2 Sep 2010 14:32:55 +0200
Message-ID: <AANLkTimx=jh64cTsyVcbcDwqbxXuLd+OP3tZK8bXwdJf@mail.gmail.com>
To: Mark <markjord@gmail.com>
Cc: www-style@w3.org
On Thu, Sep 2, 2010 at 09:49, Mark <markjord@gmail.com> wrote:
> If anyone cares, there's another error in the grammar:-
>
> ruleset
>  : selector [ ',' S* selector ]*
>    '{' S* declaration? [ ';' S* declaration? ]* '}' S*
>
> This rule won't parse 99.9% of existing CSS files. There is a space
> missing from the front before '{'. It should be:-
>
> ruleset
>  : selector [ ',' S* selector ]*
>    S* '{' S* declaration? [ ';' S* declaration? ]* '}' S*

I don't think this is an error. The "selector" production already
takes care of the white space following it:

selector
  : simple_selector [ combinator selector | S+ [ combinator? selector ]? ]?


Regards,

Jorrit
Received on Thursday, 2 September 2010 12:33:28 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:31 GMT