Bug Tracker

Modify

Ticket #2054 (closed bug: fixed)

Opened 5 years ago

Last modified 5 years ago

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

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

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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.