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

Re: [CSS21] [css3-selectors] attribute selectors

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 11 Mar 2008 18:17:31 -0500
Message-ID: <47D7130B.1010308@mit.edu>
To: fantasai <fantasai.lists@inkedblade.net>
CC: www-style@w3.org

fantasai wrote:
> Finally, wrt the resolution in
>   http://lists.w3.org/Archives/Public/www-style/2008Feb/0331.html
> about making empty string substring match selectors invalid, I'll note that
> Firefox, Opera, and IE7 all treat [attr~=""] as valid but not matching 
> anything

It sounded to me like all browsers other than Gecko matched that selector to any 
nonempty attribute value.  If that's not the case, then it makes more sense to 
specify what most UAs implement.  In the end, this corner case is just not that 
important...

What about [attr^=""] and [attr$=""]?

-Boris
Received on Tuesday, 11 March 2008 23:18:00 GMT

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