Bug Tracker

Modify

Ticket #12196 (closed bug: invalid)

Opened 10 months ago

Last modified 9 months ago

Custom matchesSelector doesn't work in FF 3.6

Reported by: josh@… Owned by:
Priority: low Milestone: None
Component: selector Version: 1.8rc1
Keywords: Cc:
Blocking: Blocked by:

Description

This is a Sizzle bug specifically, but I'm not sure if this is the correct issue tracker.

Can be reproduced with a simple test case:

jQuery.find.matchesSelector($('input')[0], ':input')
// returns false

On old FF, invalid selectors passed to mozMatchesSelector would always return false instead of correctly throwing an exception. There used to be a feature detect in Sizzle to test for this.

// This should fail with an exception
// Gecko does not error, returns false instead
try {
  matches.call( div, "[test!='']:sizzle" );
  rbuggyMatches.push( Expr.match.PSEUDO );
} catch ( e ) {}

Change History

comment:1 Changed 9 months ago by sindresorhus

  • Priority changed from undecided to low
  • Resolution set to invalid
  • Status changed from new to closed
  • Component changed from unfiled to selector

Does this still happen with 1.8 final?

If yes, please create a jsfiddle testcase and report the issue on the  Sizzle bug tracker.

comment:2 Changed 9 months ago by anonymous

Yes, 1.8 final is still broken.

 https://github.com/jquery/sizzle/issues/142

comment:3 Changed 9 months ago by dmethvin

jQuery 1.8 doesn't support Firefox 3.6 since it's no  longer supported by Mozilla as of April this year. Is there a reason you still need to support it, given that there are no security patches being created for example?

comment:4 Changed 9 months ago by anonymous

Thats fine. Just didn't see anything in the release notes about it.

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.