yes, I expect $$('#tree .node .nodeChildren') to return exactly those two elements, but if you look along the bottom of the image where I've called $$('#tree .node .nodeChildren') in the _javascript_ Console you'll see that it returns node_3_children twice

On 8/13/06, Sam <[EMAIL PROTECTED]> wrote:
Take a look at this:
http://img238.imageshack.us/img238/5752/prototypeselectorduplicatesld7.png

The image shows that $$ returns duplicates, is it supposed to do that, or is my CSS/HTML wrong? 

I don't understand your image, but glancing at the HTML, I can see that ID node_3_children satisfies $$('#tree .node .nodeChildren') once for nodeID node_1, and again for nodeID node_3.
 
Sam

_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs





--
============================
Brian Peiris
Brampton, Ontario, Canada
[EMAIL PROTECTED] or [EMAIL PROTECTED]
============================
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to