Bug Tracker

Ticket #279 (new 1)

Opened 2 years ago

Last modified 1 year ago

Ben

Reported by: Fil Assigned to: {empty}
Type: 1 Priority: 1
Milestone: 1 Component: 1
Version: 1 Keywords: Ben
Cc: Ben Needs:

Description

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

Attachments

Change History

Changed 2 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.

Changed 2 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.

Changed 2 years ago by Ben

  • cc changed from {empty} to Ben
  • component set to 1
  • summary changed from {empty} to Ben
  • priority set to 1
  • version set to 1
  • milestone set to 1
  • keywords changed from {empty} to Ben
  • type set to 1
Note: See TracTickets for help on using tickets.