Hey there,

Won't a simple statement suffice? Ie. http://jsfiddle.net/oskar/h8yCp/

Or are you trying to achieve something more complex, and I'm missing the point?

Best,
Oskar

On 4 Jun 2010, at 22:40, piotr_cz wrote:

> 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