A long time ago, jQuery had two methods for the same thing: .parents()
and .ancestors(). For jQuery 1.1.0, John Resig wanted to get rid of some
of the aliases to trim down the API. Pretty sure there was an email list
thread about which method to stick with, and ultimately he/we/they
decided on .parents(). I was always partial to .ancestors(), but IIRC
the rationale for .parents() was that the word "parents" would
be more recognizable to non-native English speakers than "ancestors."
As for using .ancestor() — singular — I don't think that's
appropriate, since there can be more than one ancestor selected. Kind
of like why jQuery uses .children() instead of .child().
Leave a comment on kswedberg's reply
Change topic type
Link this topic
Provide the permalink of a topic that is related to this topic