title: jQuery text attribute selector
body: <p>I am trying to use the text attribute as a selector, but I can't quite grasp the behaviour, would really appreciate if someone could explain. For example given <code>&lt;span class="span_class"&gt;&lt;a class="a_class"&gt;text&lt;/a&gt;&lt;/span&gt;</code>, <code>$('a.a_class').text()</code> gives "text" as expected. However <code>$('a.a_class[text]')</code> wouldn't match any elements, and neither would <code>$('span.span_class &gt; a.a_class[text]')</code>, but <code>$('span.span_class* &gt; a.a_class[text]')</code> would (although not in IE). 
  The only workaround I can think of for IE, is loop through all anchors contained in a span, use .text() on each and match it against a certain criteria, but it seems slower than using in-built selectors. Anyone have better ideas?</p>