Skip to main content

Bug Tracker

Side navigation

#6292 closed bug (worksforme)

Opened March 15, 2010 08:27PM UTC

Closed October 09, 2010 08:43PM UTC

:not is ignored if comma is after it

Reported by: blackwolf Owned by:
Priority: undecided Milestone: 1.4.3
Component: selector Version: 1.4.2
Keywords: :not Cc:
Blocked by: Blocking:

When comma is after closing bracket of :not (multiple selectors), :not selector is ignored.

$('input:not(input)').hide(); - works (no imput is hidden)

$('textarea,input:not(input)').hide(); - works (all textareas and no input is hidden)

$('input:not(input),textarea').hide(); - not works (all texareas and inputs are hidden, :not is ignored)

It works in jQuery 1.3.2, but not in 1.4.2.

Attachments (0)
Change History (1)

Changed October 09, 2010 08:43PM UTC by addyosmani comment:1

priority: → undecided
resolution: → worksforme
status: newclosed

I've tested your original ticket using 1.4.2 here ( and it seems to be working just as well as the other selector variations that you provided.

If you would like to submit another ticket with additional information on the problem experienced, please feel free to.