W3C home > Mailing lists > Public > www-style@w3.org > July 2007

[CSS21] New Candidate Recommendation - suggested correction to grammar for 'combinator'=whitespace

From: Cecil Ward <cecil@cecilward.com>
Date: Mon, 23 Jul 2007 19:32:21 +0100
To: <www-style@w3.org>
Message-ID: <000001c7cd57$cec08200$6c418600$@com>

I wish to suggest that the Appendix G Grammar be corrected to avoid the difficulties in   interpreting whitespace as a combinator within selectors.

The production for "combinatory" currently reads:

combinator
  : PLUS S*
  | GREATER S*
  | S
  ;

I suggest this needs to be amended to read

combinator
  : PLUS S*
  | GREATER S*
  | S+
  ;

CSS3 seems to agree.

I couldn't possibly say, but for all I know this may possibly have influenced the fault seen in issue #4870 in the current CSS validator - see  http://www.w3.org/Bugs/Public/show_bug.cgi?id=4870 .


Best,

Cecil Ward.
Received on Monday, 23 July 2007 18:32:38 GMT

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