Bug Tracker

Modify

Ticket #10315 (closed bug: fixed)

Opened 3 years ago

Last modified 3 years ago

Sizzle ignores seed argument when using positional selectors

Reported by: timmywil Owned by: timmywil
Priority: high Milestone: 1.7
Component: selector Version: 1.6.4
Keywords: Cc:
Blocking: Blocked by:

Description

Dave and I found this when exploring #7322. Filtering with a span:first selector gave us an anchor tag:  http://jsfiddle.net/timmywil/eJ4yd/4/

I followed the codepath and discovered that the seed argument was not passed through. Tests added to jQuery traversing for the fix in Sizzle.

Change History

comment:1 Changed 3 years ago by timmywil

  • Owner set to timmywil
  • Priority changed from undecided to high
  • Status changed from new to assigned
  • Component changed from unfiled to selector

comment:2 Changed 3 years ago by timmywil

  • Status changed from assigned to closed
  • Resolution set to fixed

Added filtering tests and updating sizzle to fix filtering with positional selectors. Fixes #10315.

Changeset: 11c9de477c5fe005a2487c761c257653aaf97a37

comment:3 Changed 3 years ago by timmywil

  • Milestone changed from None to 1.7

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.