Bug Tracker

Ticket #453 (closed bug: duplicate)

Opened 8 years ago

Last modified 8 years ago

not() uses only the first selector to filter elements

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

Description

Test is in the testsuite, basically this:

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

removes only #one from the set, nothing more.

Change History

comment:1 Changed 8 years ago by renato

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

comment:2 Changed 8 years ago by andrea

See #447

comment:3 Changed 8 years ago by john

  • Status changed from new to closed
  • Version 1.1 deleted
  • Resolution set to duplicate
  • Milestone 1.1 deleted

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

Note: See TracTickets for help on using tickets.