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 ]*
with
   : selector [ S* COMMA S* selector ]*
and
   : PLUS S* | GREATER S* | TILDE S* | S+
with
   : 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.

~fantasai
Received on Tuesday, 9 December 2008 04:12:37 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:17 GMT