Re: [css3-selectors] when both a and b are 0 in nth

On Tuesday 2009-10-20 17:01 +0200, Anne van Kesteren wrote:
> Would it make sense to make nth pseudo-classes be ignored when both a and 
> b are 0? It is a reasonably easy case to catch and is very likely an  
> authoring error of some kind.
>
> While working on figuring out what the serialization should be for  
> Selectors I found out that Opera already does this. Firefox and WebKit  
> currently do not.

There are a lot of selectors that can't match; why pick these in
particular?  Dropping them requires additional code, and I don't
think it's necessary.

-David

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

Received on Tuesday, 20 October 2009 15:20:44 UTC