Bug Tracker

Opened 14 years ago

Closed 13 years ago

Last modified 13 years ago

#4505 closed bug (worksforme)

$(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:


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.

Change History (2)

comment:1 Changed 13 years ago by dmethvin

Resolution: worksforme
Status: newclosed

Works on Opera 9.8/Windows with jQuery 1.4.2.

comment:2 Changed 13 years ago by dmethvin

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

Note: See TracTickets for help on using tickets.