Hello MooTools users,

Is there an easy way how to select all elements which have no
descendants?
I'd like to create an array of text anchor tags - so excluding those
with image inside: <a><img /></a>.

While checking docs on Selectors (http://mootools.net/docs/core/
Utilities/Selectors#Selector:not) there's a note that unfortunately
only singe selector can be passed.


Only clue I have is that selected <a><img /></a> returns text value "
". I've tried

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

but with no luck.

Reply via email to