Bug Tracker

Modify

Ticket #7940 (closed bug: wontfix)

Opened 2 years ago

Last modified 2 years ago

$('aa').find('bb, cc') includes the wrong elements

Reported by: korinthe Owned by: korinthe
Priority: low Milestone: 1.next
Component: selector Version: 1.4.2
Keywords: Cc:
Blocking: Blocked by:

Description

This is only superficially related to #6754. I am not talking about use of the selector() method at all.

$('aa').find('bb,cc') should find all the elements found by $('aa bb') plus those found by $('aa cc'). Instead it finds $('aa bb') plus $('cc'). Not so useful

Change History

comment:1 Changed 2 years ago by rwaldron

  • Owner set to korinthe
  • Status changed from new to pending
  • Component changed from unfiled to selector

Thanks for taking the time to contribute to the jQuery project! Please provide a reduced jsFiddle test case to help us assess your ticket!

Additionally, test against the latest jQuery release and the jQuery 0 GIT version to ensure the issue still exists. Be Excellent to eachother!

comment:2 Changed 2 years ago by addyosmani

  • Priority changed from undecided to low
  • Status changed from pending to closed
  • Resolution set to wontfix

Thanks for submitting your ticket. We have reproduced a minimal test case of the code you're talking about here  Live Test Case, but have determined that there is no documented case of .find() supporting two comma-separated strings. You are however able to use a sting string with as many comma-separated selector values as you wish as this should be more than adequate for most use cases.

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.