The original question was whether it was a child, which is a bit simpler: $(a.childNodes).index(b) >= 0
The quickest way to determine the descendant case would be with IE's contains method or the W3c compareDocumentPosition method. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---
