Side navigation
#2054 closed bug (fixed)
Opened December 14, 2007 07:27PM UTC
Closed December 14, 2007 09:11PM UTC
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);
Attachments (0)
Change History (1)
Changed December 14, 2007 09:11PM UTC by comment:1
milestone: | 1.2.1 → 1.2.2 |
---|---|
priority: | critical → major |
resolution: | → fixed |
status: | new → closed |
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.