Opened 10 years ago
Closed 10 years ago
#13734 closed bug (notabug)
passing -1 to the gt() selector causes nothing to be selected
Reported by: | 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
version 1.9.1 browser firefox 19.0.2 OS Windows 7
Note: See
TracTickets for help on using
tickets.
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.