Bug Tracker

Opened 16 years ago

Closed 15 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 john)

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 16 years ago by joern

Description: modified (diff)

comment:2 Changed 16 years ago by john

need: Test Case

comment:3 Changed 16 years ago by john

Resolution: fixed
Status: newclosed

Added in SVN rev [1579].

comment:4 Changed 15 years ago by joern

Resolution: fixed
Status: closedreopened

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:5 Changed 15 years ago by john

Removed in SVN rev [1811].

comment:7 Changed 15 years ago by john

Description: modified (diff)
Resolution: wontfix
Status: reopenedclosed

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.