Modify ↓
Ticket #6966 (closed enhancement: duplicate)
.andSelf(selector)
| Reported by: | dmethvin | Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | |
| Component: | traversing | Version: | 1.4.2 |
| Keywords: | needsreview | Cc: | |
| Blocking: | Blocked by: |
Description
Comment on api.jquery.com from Nick Craver:
What are the chances of giving this the ability to take a selector? When any descendant or current elements that match the current selector, there's not a quick way to do this, currently it's .find(selector).andSelf().filter(selector) or some combination, would be nice if .andSelf() was able to take a selector already, doing the filter internally.
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

Smells like bikeshed/feature creep. Marking for review.