Modify ↓
Ticket #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: | ||
| Blocking: | Blocked by: |
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.
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

Works on Opera 9.8/Windows with jQuery 1.4.2.