> I do think it would be better if parents wasn't there though (if it is the
> same as ancestors). Why would you have two functions that do the same thing?

The main reason is that not everyone comes from an XPath/XML
background - it's the same reason why there's .find() and not
.descendants(). It's like 4 extra bytes to include .parents(). Back
when we were originally planning out the names for this feature, there
was a definite tension between using XPath-style verbage versus
'english' words. I think this is an acceptable compromise.

--John

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to