Bug Tracker

Opened 6 years ago

Closed 6 years ago

#13870 closed bug (notabug)

How next() works

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

Description

In the help http://api.jquery.com/next/ it is not clear, what is returned when the next sibling does not match the selector passed as next() argument: the next of the next or the empty set.

Change History (1)

comment:1 Changed 6 years ago by timmywil

Resolution: notabug
Status: newclosed

Sorry, I'm confused about the confusion.

Get the immediately following sibling of each element in the set of matched elements. If a selector is provided, it retrieves the next sibling only if it matches that selector.

It retrieves the next sibling, optionally filtered by a selector.

Still, if there is a better way to word that, the best place for issues like these is at https://github.com/jquery/api.jquery.com/issues.

Note: See TracTickets for help on using tickets.