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

[selectors3] nth grammar

From: Anne van Kesteren <annevk@opera.com>
Date: Wed, 12 May 2010 14:22:19 +0200
To: www-style@w3.org
Cc: "Rune Lillesveen" <rune@opera.com>
Message-ID: <op.vcldzhre64w2qv@annevk-t60>
The grammar in http://dev.w3.org/csswg/selectors3/#nth-child-pseudo

nth
   : S* [ ['-'|'+']? INTEGER? {N} [ S* ['-'|'+'] S* INTEGER ]? |
          ['-'|'+']? INTEGER | {O}{D}{D} | {E}{V}{E}{N} ] S*
   ;

could probably use some additional explanation or revision. E.g.  
"2/*comment*/n" parses as what is stated there but "2n" will parse as  
DIMENSION. It also seems to imply that "ev/*comment*/en" matches  
{E}{V}{E}{N} which is probably not intended.

I recall this being discussed before, but I cannot find anything in the  
draft that clarifies things.


-- 
Anne van Kesteren
http://annevankesteren.nl/
Received on Wednesday, 12 May 2010 12:23:07 GMT

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