Bug Tracker

Modify

Ticket #995 (closed enhancement: wontfix)

Opened 6 years ago

Last modified 6 years ago

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:1 Changed 6 years ago by joern

  • Description modified (diff)

comment:2 Changed 6 years ago by john

  • need set to Test Case

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

Removed in SVN rev [1811].

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.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.