Bug Tracker

Opened 12 years ago

Closed 12 years ago

#7940 closed bug (wontfix)

$('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:
Blocked by: Blocking:


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 (2)

comment:1 Changed 12 years ago by Rick Waldron

Component: unfiledselector
Owner: set to korinthe
Status: newpending

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 12 years ago by addyosmani

Priority: undecidedlow
Resolution: wontfix
Status: pendingclosed

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.

Note: See TracTickets for help on using tickets.