Bug Tracker

Opened 7 years ago

Closed 7 years ago

#13734 closed bug (notabug)

passing -1 to the gt() selector causes nothing to be selected

Reported by: raymond@… Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.9.1
Keywords: Cc:
Blocked by: Blocking:

Description

problem: passing -1 to the gt() selector causes nothing to be selected expected result: things matching index 0 and above should be selected

http://jsfiddle.net/xWydz/4/

version 1.9.1 browser firefox 19.0.2 OS Windows 7

Change History (1)

comment:1 Changed 7 years ago by gibson042

Resolution: notabug
Status: newclosed

When passed a negative index, positional selectors count backwards from the last element. This is documented at :eq, but it looks like we missed the others. The relevant ticket is at https://github.com/jquery/api.jquery.com/issues/276.

Note: See TracTickets for help on using tickets.