Skip to main content

Bug Tracker

Side navigation

#3908 closed bug (worksforme)

Opened January 18, 2009 05:53PM UTC

Closed January 19, 2009 01:44AM UTC

find only returns 1 element

Reported by: roweiss Owned by: john
Priority: critical Milestone: 1.3.1
Component: selector Version: 1.3
Keywords: Cc:
Blocked by: Blocking:
Description

performing the following only returns 1 element:

var test = $('<li><div class="class1"></div><div class="class2"></div></li>').find("div");

It should return both div's, however it only returns the first one.

I am using the following version:

/*!

2 * jQuery JavaScript Library v1.3

3 * http://jquery.com/

4 *

5 * Copyright (c) 2009 John Resig

6 * Dual licensed under the MIT and GPL licenses.

7 * http://docs.jquery.com/License

8 *

9 * Date: 2009-01-13 12:50:31 -0500 (Tue, 13 Jan 2009)

10 * Revision: 6104

11 */

Attachments (0)
Change History (1)

Changed January 19, 2009 01:44AM UTC by scottgonzalez comment:1

resolution: → worksforme
status: newclosed

Using jQuery 1.3 (what you've said you're using), your test code returns two elements for me.