Bug Tracker

Modify

Ticket #279 (closed: invalid)

Opened 7 years ago

Last modified 4 years ago

Ben

Reported by: Fil Owned by:
Priority: Milestone:
Component: Version:
Keywords: SPAM Cc:
Blocking: Blocked by:

Description (last modified by dmethvin) (diff)

If I do

$("a").filter(".x,.y.z")

I don't get the correct selection.

I would have expected to get the same as $("a.x").add("a.y").add("a.z")

PS: version 1.0.2

Change History

comment:1 Changed 7 years ago by Fil

Sorry I typed the bug report wrong (shame!)

The code should have said: $("a").filter(".x,.y,.z")

The bug stands.

comment:2 Changed 7 years ago by john

  • Type changed from bug to enhancement

This is already implemented in jQuery, just differently. You can do: $("a").filter([".x", ".y", ".z"]) and it will work as expected.

Having it also work with commas ',' would be nice, but its certainly not a bug.

comment:3 Changed 7 years ago by Ben

  • Cc Ben added; {empty} removed
  • Component set to 1
  • Summary changed from {empty} to Ben
  • Priority set to 1
  • Version set to 1
  • Milestone set to 1
  • Keywords Ben added; {empty} removed
  • Type set to 1

comment:4 Changed 4 years ago by dmethvin

  • need set to Review
  • Description modified (diff)

comment:5 Changed 4 years ago by dmethvin

  • Keywords SPAM added; Ben removed
  • Priority changed from 1 to trivial
  • Status changed from new to closed
  • Component changed from 1 to unfilled
  • Resolution set to invalid

SPAM

comment:6 Changed 3 years ago by snover

  • Priority trivial deleted
  • Type 1 deleted
  • Version 1 deleted
  • Component unfiled deleted
  • Milestone 1 deleted

comment:7 Changed 3 years ago by snover

  • Cc Ben removed
  • Owner {empty} deleted

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.