W3C home > Mailing lists > Public > www-style@w3.org > February 2008

Re: [css3] "Selectors that People Actually Use"

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Mon, 18 Feb 2008 15:22:33 -0600
Message-ID: <47B9F719.2070604@mit.edu>
To: Alan Gresley <alan1@azzurum.com>
CC: Daniel Glazman <daniel.glazman@disruptive-innovations.com>, www-style@w3.org

Alan Gresley wrote:
> p[class*=""] {}

I should note that the spec doesn't really describe how this should be 
matched.  The only two options I see are "never matches" (which is what 
Gecko does) and "same as p[class]".

The latter should probably be clearly specified.

Given that, though, there's not much point to this selector....

> of course they could be grouped as
> 
> p[class*=""], p:not([class*=""]) {}

That's equivalent to the selector "p".

-Boris
Received on Monday, 18 February 2008 21:22:55 GMT

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