Re: [css3-selectors] The universal attribute selector

Following your syntax, this selector would be useful for debugging  
purposes in order to verify in complex layouts whether an element has  
attributes or not (instead of using DOM's hasAttributes() method).  
this also applies to XML documents. this pattern could be extended as  
follows:

p[*="test"]

matches all p elements with an attribute value of 'test', regardless  
of the attribute name.

Combination with other attribute selectors:

p[*|="test"]

matches all p elements that have a dashed separated list of attribute  
values, one of which is exactly 'test',
regardless of the attribute name.

G.






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 Saturday, 28 February 2009 05:33:33 UTC