Skip to main content

Bug Tracker

Side navigation

#13870 closed bug (notabug)

Opened May 08, 2013 01:52PM UTC

Closed May 08, 2013 02:48PM UTC

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.

Attachments (0)
Change History (1)

Changed May 08, 2013 02:48PM UTC by timmywil comment:1

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.