> $$('#inside a[text!=""]')
> $$('#inside a[text!=" "]')
> $$('#inside a:not([text=""])')
> $$('#inside a:not(img)')

$$('a[text]')

Selects all As that have at least one text node inside (which may come
before,  after, or inside nodes of other types). It will not select As
that have only an IMG inside.

http://jsfiddle.net/Dvpbj/

However, if you want to exclude nodes that have both an IMG and a text
node (not completely clear from your post) that won't be caught by the
selector.

-- S.

Reply via email to