Bug Tracker

Ticket #4505 (closed bug: worksforme)

Opened 7 years ago

Last modified 5 years ago

$(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:
Blocking: Blocked by:


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

comment:1 Changed 5 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to worksforme

Works on Opera 9.8/Windows with jQuery 1.4.2.

comment:2 Changed 5 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.