W3C home > Mailing lists > Public > www-style@w3.org > October 2011

Re: Why is there != attribute selector in CSS?

From: Tantek Çelik <tantek@cs.stanford.edu>
Date: Wed, 12 Oct 2011 10:37:13 -0400
Message-ID: <CAOACb=+u1PGwY5VSY-3Z=+g_1uQNeQFxTM_3uFNuGF2_4cVmDg@mail.gmail.com>
To: "Fred ." <eldmannen@gmail.com>, www-style@w3.org
On Wed, Oct 12, 2011 at 09:42, Fred . <eldmannen@gmail.com> wrote:
> Why is there != (negative) attribute selector in CSS?
> Such as:
> option[value!="Foo_"] or ~^="Foo_"
>
> Is there any way I can select anything except option[value^="Foo_"] ?

:not can be used for this:

option:not([value="Foo_"])

-t

-- 
http://tantek.com/ - I made an HTML5 tutorial! http://tantek.com/html5
Received on Wednesday, 12 October 2011 14:38:34 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:45 GMT