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

Re: Allow whitespace before the commas?

From: fantasai <fantasai.lists@inkedblade.net>
Date: Mon, 08 Dec 2008 20:11:56 -0800
Message-ID: <493DF00C.4060309@inkedblade.net>
To: Krzysztof Maczyński <1981km@gmail.com>
CC: www-style@w3.org, Bert Bos <bert@w3.org>, "L. David Baron" <dbaron@dbaron.org>

Krzysztof Maczyński wrote:
> For a group of selectors the grammar (although not the prose
> which seems to disallow any whitespace; an interpretation
> promptly refuted by the example) in the Selectors WD allows
> whitespace after a comma separating selectors but not before.
> Is there a particular important reason for this? If not, I
> suggest this restriction be lifted as it creates a likely
> pitfall for authors. (I feel the prose needn't be amended
> though.)

There are several places where white space seems to have been
left out of the grammar.

Unless I'm missing something we need to replace
   : selector [ COMMA S* selector ]*
   : selector [ S* COMMA S* selector ]*
   : PLUS S* | GREATER S* | TILDE S* | S+
   : S* PLUS S* | S* GREATER S* | S* TILDE S* | S+

Bert or dbaron, could you check that? If it's correct I'll
edit these changes into the spec.

Received on Tuesday, 9 December 2008 04:12:37 UTC

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