jQuery: The Write Less, Do More JavaScript Library

Ticket #2054 (closed bug: fixed)

Opened 5 months ago

Last modified 5 months ago

creation of jQuery object causes Safari 2.0.4 on MacOS 10.4 to crash.

Reported by: gt2304b Assigned to: anonymous
Type: bug Priority: major
Milestone: 1.2.2 Component: core
Version: 1.2.1 Keywords: safari crash jquery core html string
Cc: Needs: Review

Description

Browser: Safari 2.0.4 OS: MacOSX 10.4

Steps to reproduce: 1) create a string variable w/ html markup containing linebreaks and html comments.

ie: var data = "<!-- data --!>\n \n <li>asdlkj<div></div>\n</li>\n<li>asdasd</li>\n<!-- end -->"

2) var $newlist = $(data).filter('li');

Expected Result: $newlist is a jQuery object Actual Result: Safari crashes and browser window closes.

Workaround:

var div = createElement('div'); div.innerHTML = data; var lis = div.childNodes; $newlist = $(lis);

Attachments

Change History

Changed 5 months ago by davidserduke

  • priority changed from critical to major
  • status changed from new to closed
  • resolution set to fixed
  • milestone changed from 1.2.1 to 1.2.2

This should be fixed in [4062]. If you get a chance and could test the current SVN version against this it would be great. I don't have access to your browser/os combination. If there is still a problem please reopen the ticket.

Note: See TracTickets for help on using tickets.