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

Re: Attribute Comparison Selectors

From: ben <arcticmac@comcast.net>
Date: Mon, 20 Mar 2006 19:16:01 +0000
Message-Id: <p0623090ec044af0670dd@[192.168.11.4]>
To: Daniel Schierbeck <daniel.schierbeck@gmail.com>




I think your syntax is probably much better than mine.  I'd be 
inclined to not use the "not equal" operator, preferring to rely on 
the :not() pseudo-class to simplify things...


>I think it is a very good idea, but the syntax is going to be hell. 
>I'd rather boil it down to "lesser than" and "greater than". 
>Remember, more than one attribute selector can be used!
>
>  event[date > "1849"][date < "1914"]:not([date = "1901"]) { ... }
>
>Perhaps even add the "not equal to" operator?
>
>  event[date != "1901"] { ... }
>
>
>I can easily see how this could complicate things, but if executed 
>properly, this could really benefit CSS.
>
>
>Daniel Schierbeck
Received on Tuesday, 21 March 2006 11:05:20 GMT

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