Bug Tracker

Opened 7 years ago

Closed 7 years ago

Last modified 5 years ago

#7243 closed bug (fixed)

live is not working properly with attribute not equal selector in Firefox

Reported by: anonymous Owned by: john
Priority: blocker Milestone: 1.4.4
Component: selector Version: 1.4.3
Keywords: live focusout regression Cc:
Blocked by: Blocking:

Description

Using live focusout do not fire any event on firefox mac 3.6, work on IE and webkit

Change History (14)

comment:1 Changed 7 years ago by addyosmani

Keywords: live focusout added
Owner: set to anonymous
Priority: undecidedlow
Status: newpending

Can you please submit a valid testcase reproducing this issue (ideally on jsFiddle) so that we can evaluate the bug mentioned?

comment:2 Changed 7 years ago by cedric_dugas@…

Finally the problem comes from Sizzle I think,

http://www.jsfiddle.net/HngRv/1/

when .not(":checkbox") is added, the script do not work,

but $("[class*=validate]") will work.

comment:3 Changed 7 years ago by anonymous

Status: pendingnew

In fact,

Doing more tests, it seems this do nto work anywhere,

But this work everywhere beside firefox

$("[class*=validate][type!=checkbox]").live("focusout", function(){ alert(""); })

comment:4 Changed 7 years ago by cedric_dugas@…

The url of that version: http://www.jsfiddle.net/HngRv/4/

Sorry for the spam....

comment:5 Changed 7 years ago by snover

Component: unfiledselector
Keywords: regression added
Milestone: 1.51.4.4
Priority: lowblocker
Status: newopen
Summary: live focusout is not working on input element on Firefox 3.6live is not working properly with attribute not equal selector in Firefox

This has nothing to do with the event type and everything to do with live + attribute not-equals selector. revised test case This also happens in Firefox 4. All other browsers pass. This is a regression from 1.4.2.

comment:6 Changed 7 years ago by Rick Waldron

attribute not-equals selector is also broken in http://bugs.jquery.com/ticket/7216

comment:7 Changed 7 years ago by snover

#7216 is a duplicate of this ticket.

comment:8 Changed 7 years ago by snover

Firefox fails to throw an Error when matchesSelector is passed an invalid selector string and instead just raises a warning (like what happens when you give it invalid CSS). This was already worked around with custom pseudo-selectors, but attribute not-equals is also not a valid CSS selector and so fails.

comment:9 Changed 7 years ago by snover

Owner: changed from anonymous to snover
Status: openaccepted

comment:11 Changed 7 years ago by snover

Status: acceptednew

comment:12 Changed 7 years ago by snover

Status: newassigned

comment:13 Changed 7 years ago by john

Owner: changed from snover to john

comment:14 Changed 7 years ago by jeresig

Resolution: fixed
Status: assignedclosed

Adding another test for an issue in Gecko's matchesSelector implementation. Fixes #7243.

Changeset: 9be7461c3c7e85b1995766533db8806eb0909779

Note: See TracTickets for help on using tickets.