Bug Tracker

Opened 15 years ago

Closed 15 years ago

#2054 closed bug (fixed)

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

Reported by: gt2304b Owned by:
Priority: major Milestone: 1.2.2
Component: core Version: 1.2.1
Keywords: safari crash jquery core html string Cc:
Blocked by: Blocking:

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);

Change History (1)

comment:1 Changed 15 years ago by davidserduke

Milestone: 1.2.11.2.2
Priority: criticalmajor
Resolution: fixed
Status: newclosed

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.