[css3-selectors] :nth-child() argument and comments

One of "Microsoft tests" for IE9 tests comments inside :nth-child()

 
http://samples.msdn.microsoft.com/ietestcenter/css3/selectors/ValidComments.htm

Some of the already existing implementations fail on this because
we always discussed an argument "2n+1" tokenized as a "2n" dimension
and a "+1" number here. We never thought of comments "à la"

   2/*this is a comment/*n+1

and they probably don't make sense at all, even from a web author's
point of view. We need a clarification in the Selectors spec here, to
say if comments are forbidden inside the argument of :nth-child() and
allowed only around it, or allowed everywhere inside.

I am myself *strongly* in favor of the former, and I understand that
would make the test linked above invalid.

</Daniel>

Received on Thursday, 18 March 2010 15:07:20 UTC