[css3-selectors] The universal attribute selector

The universal attribute selector should match an element by the  
presence of an attribute, whatever its name or value. Format:

E[@]

Examples:

p[@] {color: green}

matches:

<p id="test"></p>
<p class="test"></p>
<p title="test"></p>

regards.

ps. problem: one or more attributes per element?


http://www.css-zibaldone.com
http://www.css-zibaldone.com/test/  (English)
http://www.css-zibaldone.com/articles/  (English)
http://mimicry.css-zibaldone.com/ (Blog)
http://www.flickr.com/photos/gabrieleromanato/ (Flickr)

Received on Friday, 27 February 2009 02:37:42 UTC