Bug Tracker

Modify

Ticket #5016 (closed bug: worksforme)

Opened 4 years ago

Last modified 3 years ago

parents() order different when selector added

Reported by: antix Owned by: john
Priority: major Milestone: 1.4
Component: selector Version: 1.3.2
Keywords: parents, selector Cc:
Blocking: Blocked by:

Description

When you look at the returned elements when using parents() you get the order as expected and documented  http://docs.jquery.com/Traversing/parents#expr

but when you add a selector, the order reverses

var parentEls = $("b").parents("span,p")

Change History

comment:1 Changed 3 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to worksforme

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.