Bug Tracker

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#14027 closed feature (plugin)

New feature: ancestor()

Reported by: anonymous Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 2.0.2
Keywords: Cc:
Blocked by: Blocking:

Description

A new feature that could have some use is the ancestor() feature which returns the nearest common ancestor of all the elements within a jQuery array. Supported on all major browsers (even IE 9) it has a low profile while adding extra functionality (ive) not seen before. It will only return one jQuery element at most, additional elements only broadens the scope at which it will search for the common ancestor.

http://jsfiddle.net/y5tPr/

I'm not sure if jQuery 1.9 is still being supported so haven't included the IE<9 code with it. Also, I believe the namespace may cause some headaches as its a generic term used for parents more than one tier up, so that can be changed without a problem.

Change History (2)

comment:1 Changed 10 years ago by dmethvin

Resolution: plugin
Status: newclosed

Could be a great plugin. Build it and show that a lot of people need it.

comment:2 Changed 10 years ago by dmethvin

#14026 is a duplicate of this ticket.

Note: See TracTickets for help on using tickets.