Modify ↓
Ticket #6292 (closed bug: worksforme)
: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
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

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.