Changes between Initial Version and Version 5 of Ticket #9747
- Timestamp:
- Jul 6, 2011, 9:40:49 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #9747
-
Property
Status
changed from
new
toclosed
-
Property
Component
changed from
unfiled
toselector
-
Property
Priority
changed from
undecided
tolow
- Property Keywords needsdocs added
-
Property
Resolution
changed from
to
invalid
-
Property
Status
changed from
-
Ticket #9747 – Description
initial v5 1 1 Affects every version of jQuery that I tested: 1.2.6, 1.3.2, 1.4.4, 1.5.2, 1.6.1. 2 2 3 Reproduced in Chrome 13.0.782.32beta under Ubuntu 11.04.3 Reproduced in Chrome beta under Ubuntu 11.04. 4 4 5 5 Steps to reproduce: … … 17 17 Every nested element matching the given selectors is returned. It is as though ":first" has no effect on result of the find() invocation. 18 18 19 jsfiddle test case: http://jsfiddle.net/hallettj/q9zfd/1/19 jsfiddle test case: 20 20 21 21 If I combine both selectors into one jQuery() call instead of using a chained find() invocation then the result is as I expect. For example, `$('li a:first')` returns a single anchor tag: the one in the first list item. But `$('li').find('a:first')` returns every anchor tag in every list item - assuming that each list item has at most one anchor tag.