Skip to main content

Bug Tracker

Side navigation

#453 closed bug (duplicate)

Opened November 29, 2006 08:27PM UTC

Closed December 23, 2006 05:56PM UTC

Last modified June 19, 2007 08:14AM UTC

not() uses only the first selector to filter elements

Reported by: joern Owned by:
Priority: major Milestone:
Component: core Version:
Keywords: Cc:
Blocked by: Blocking:
Description

Test is in the testsuite, basically this:

$().not("#one, #two")

removes only #one from the set, nothing more.

Attachments (0)
Change History (3)

Changed November 30, 2006 11:39AM UTC by renato comment:1

I don't think this is really a bug.

What i mean is that, like filter, "not" should also take an array of strings as argument.

ex: $().not(["#one","#two"])

Both filter and not use jQuery.filter, that is not capable to process multiple selectors, those with ",". This is the reason for which the array of strings argument was introduced for filter.

However, i agree that if not and filter were able to process multiple selectors too, it would be better, and in that case the array of string argument could be eliminated

Changed December 11, 2006 06:44PM UTC by andrea comment:2

See #447

Changed December 23, 2006 05:56PM UTC by john comment:3

milestone: 1.1
resolution: → duplicate
status: newclosed
version: 1.1

I'm merging this ticket with #319, which is more comprehensive.