which version of mootools are you using?
I think that's the problem

I run that code snippet and I got no alerts...
I added an alert(catz.lenght);
and it alerted 0

=(

I'm starting to get desperate
manu



On Oct 21, 3:03 pm, Sanford Whiteman <[email protected]>
wrote:
> > they are!
>
> Yes,  they  will  appear  in  the _serialized_ representation, but you
> don't filter on them.
>
> htmlResponse='<categoryid=\'c1\'><foof id=\'f1\'></foof></category>';
> htmlElementsValid = new Element('div', { html: 
> htmlResponse.replace(/<(\/)?/g,'<$1mycustom:')}).getChildren();
> var catz = htmlElementsValid.filter('category');
> catz.each(function(cat){
>   alert (cat.get('id')); // alerts 'c1'
>   alert (cat.getFirst().get('id')); // alerts 'f1'
>
> });
>
> -- Sandy

Reply via email to