Side navigation
#7940 closed bug (wontfix)
Opened January 10, 2011 06:59PM UTC
Closed January 10, 2011 09:38PM UTC
$('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: |
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
Attachments (0)
Change History (2)
Changed January 10, 2011 07:47PM UTC by comment:1
component: | unfiled → selector |
---|---|
owner: | → korinthe |
status: | new → pending |
Changed January 10, 2011 09:38PM UTC by comment:2
priority: | undecided → low |
---|---|
resolution: | → wontfix |
status: | pending → closed |
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.
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!