Bug Tracker

Modify

Ticket #6292 (closed bug: worksforme)

Opened 3 years ago

Last modified 3 years ago

: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:
Blocking: Blocked by:

Description

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.

Change History

comment:1 Changed 3 years ago by addyosmani

  • Priority set to undecided
  • Status changed from new to closed
  • Resolution set to worksforme

I've tested your original ticket using 1.4.2 here ( http://jsfiddle.net/addyosmani/qeUmh/) 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.

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.