Re: Allow whitespace before the commas?

On Monday 2008-12-08 20:47 -0800, L. David Baron wrote:
> In other words, instead of the above two changes, change:
>   # simple_selector
>   #   : element_name [ HASH | class | attrib | pseudo ]*
>   #   | [ HASH | class | attrib | pseudo ]+
>   #   ;
> to be either:
>   # simple_selector
>   #   : element_name [ HASH | class | attrib | pseudo ]* S*
>   #   | [ HASH | class | attrib | pseudo ]+ S*
>   #   ;
> or probably preferably:
>   # simple_selector
>   #   : [ element_name [ HASH | class | attrib | pseudo ]* |
>   #       [ HASH | class | attrib | pseudo ]+ ] S*
>   #   ;

To be clear, the above edit is for CSS 2.1 appendix D.  I now see
that your proposal was actually for selectors3; CSS 2.1 doesn't have
the "TILDE S*".

In http://dev.w3.org/csswg/selectors3/#w3cselgrammar the appropriate
change equivalent to the above would be in the production for
simple_selector_sequence, which I think we should probably also
make.  That said, for selectors3, that means that the overall
selector production has trailing whitespace, which I think is
probably a good thing, although others may disagree.

(For selectors3, this is ISSUE-80.)

-David

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/

Received on Tuesday, 9 December 2008 05:08:52 UTC