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

[Selectors] Attribute Selectors with Empty Values

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Tue, 08 Jul 2008 16:42:54 +0200
Message-ID: <48737CEE.7060702@lachy.id.au>
To: www-style <www-style@w3.org>

   I came across this issue while working on the Selectors API test 
suite.  It's not clear from the Selectors spec whether or not these 
selectors should match any elements:


Given this element:

<p class="foo">

It seems that browsers disagree on this issue too.  Opera matches all of 
them, Firefox 3 matches both $= and ^=, but not *=, and WebKit matches none.

This selectors test suite [1] actually requires WebKit's behaviour, but 
I just can't find where this is defined in the spec.

[1] http://disruptive-innovations.com/zoo/css3tests/selectorTest.html

Lachlan Hunt - Opera Software
Received on Tuesday, 8 July 2008 14:43:34 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:38 UTC