Skip to main content

Bug Tracker

Side navigation

#4505 closed bug (worksforme)

Opened April 08, 2009 09:29AM UTC

Closed June 12, 2010 05:59PM UTC

Last modified June 12, 2010 06:01PM UTC

$(myDiv).find('h2,p') fails on Chrome and Safari since jQuery 1.3.2

Reported by: daw Owned by:
Priority: major Milestone: 1.4
Component: unfiled Version: 1.3.2
Keywords: Cc:
Blocked by: Blocking:
Description

The exact following code fails when using jQuery 1.3.2 but not in earlier versions of jQuery (I tested 1.3.1, 1.3 and 1.2.6).

var myDiv = $('<div><p>My Paragraph</p><h2>My H2</h2></div>');
alert (myDiv.find("h2").length);
alert (myDiv.find("p,h2").length);

The second alert is never shown due to that the code inside jQuery breaks when the search includes 'p' in the filter.

Attachments (0)
Change History (2)

Changed June 12, 2010 05:59PM UTC by dmethvin comment:1

resolution: → worksforme
status: newclosed

Works on Opera 9.8/Windows with jQuery 1.4.2.

Changed June 12, 2010 06:01PM UTC by dmethvin comment:2

Meant to say Firefox 3.6.3, Chrome 5.0 and Safari 5.0 as well.