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

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

From: Daniel Glazman <daniel.glazman@disruptive-innovations.com>
Date: Thu, 18 Mar 2010 16:06:46 +0100
Message-ID: <4BA24186.7020405@disruptive-innovations.com>
To: "www-style@w3.org" <www-style@w3.org>
One of "Microsoft tests" for IE9 tests comments inside :nth-child()


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.

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

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:13:44 UTC