Skip to main content

Bug Tracker

Side navigation

#13734 closed bug (notabug)

Opened April 05, 2013 04:44AM UTC

Closed April 05, 2013 05:52AM UTC

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

Reported by: raymond@raymondselzer.net 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

Attachments (0)
Change History (1)

Changed April 05, 2013 05:52AM UTC by gibson042 comment:1

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.