Skip to main content

Bug Tracker

Side navigation

#7243 closed bug (fixed)

Opened October 18, 2010 04:53PM UTC

Closed October 22, 2010 03:46AM UTC

Last modified March 19, 2012 09:22PM UTC

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

Attachments (0)
Change History (14)

Changed October 18, 2010 05:45PM UTC by addyosmani comment:1

keywords: → live focusout
owner: → 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?

Changed October 18, 2010 07:06PM UTC by cedric_dugas@hotmail.com comment:2

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.

Changed October 18, 2010 07:14PM UTC by anonymous comment:3

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(""); })

Changed October 18, 2010 07:17PM UTC by cedric_dugas@hotmail.com comment:4

The url of that version:

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

Sorry for the spam....

Changed October 18, 2010 10:02PM UTC by snover comment:5

component: unfiledselector
keywords: live focusoutlive focusout regression
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.

Changed October 19, 2010 03:49AM UTC by rwaldron comment:6

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

Changed October 20, 2010 07:03AM UTC by snover comment:7

#7216 is a duplicate of this ticket.

Changed October 20, 2010 07:06AM UTC by snover comment:8

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.

Changed October 21, 2010 06:15AM UTC by snover comment:9

owner: anonymoussnover
status: openaccepted

Changed October 21, 2010 06:15AM UTC by snover comment:10

Changed October 22, 2010 12:43AM UTC by snover comment:11

status: acceptednew

Changed October 22, 2010 12:43AM UTC by snover comment:12

status: newassigned

Changed October 22, 2010 03:11AM UTC by john comment:13

owner: snoverjohn

Changed October 22, 2010 03:46AM UTC by jeresig comment:14

resolution: → fixed
status: assignedclosed

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

Changeset: 9be7461c3c7e85b1995766533db8806eb0909779