Opened 13 years ago
Closed 12 years ago
#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: | |
Blocked by: | Blocking: |
Description (last modified by )
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 (6)
comment:1 Changed 13 years ago by
Description: | modified (diff) |
---|
comment:2 Changed 13 years ago by
need: | → Test Case |
---|
comment:3 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:4 Changed 13 years ago by
Resolution: | fixed |
---|---|
Status: | closed → reopened |
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 12 years ago by
Description: | modified (diff) |
---|---|
Milestone: | 1.1.3 → 1.1.4 |
Resolution: | → wontfix |
Status: | reopened → closed |
Version: | 1.1.1 → 1.1.3 |
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.
Note: See
TracTickets for help on using
tickets.
Added in SVN rev [1579].