Modify ↓
Ticket #995 (closed enhancement: wontfix)
Support XPath position selector: [n]
| Reported by: | joern | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | 1.1.4 |
| Component: | core | Version: | 1.1.3 |
| Keywords: | selectors, xpath | Cc: | |
| Blocking: | Blocked by: |
Description (last modified by john) (diff)
Being able to replace the rather noisy ":eq(n)" with a plain "[n]" would be great. That is, the following are equivalent:
input:eq(3) <==> input[3]
Thats a great XPath feature!
Change History
comment:3 Changed 6 years ago by john
- Status changed from new to closed
- Resolution set to fixed
Added in SVN rev [1579].
comment:4 Changed 6 years ago by joern
- Status changed from closed to reopened
- Resolution fixed deleted
It seems like [n] actually works like nth-of-type(), not like nth-child().
Still, it isn't the same as :eq(n), which is fine.
comment:7 Changed 6 years ago by john
- Status changed from reopened to closed
- Version changed from 1.1.1 to 1.1.3
- Resolution set to wontfix
- Description modified (diff)
- Milestone changed from 1.1.3 to 1.1.4
Unfortunately, since this was backed out - and since we're removing XPath functionality in jQuery 1.2, it really doesn't look like this will make it in.
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.
