Ticket #3256 (closed bug)
Test suite crashes Nokia S60 WebKit Browser
| Reported by: | nedrichards | Owned by: | nedrichards |
|---|---|---|---|
| Priority: | low | Milestone: | 1.3 |
| Component: | core | Version: | 1.2.6 |
| Keywords: | mobile crash test suite | Cc: | |
| Blocking: | Blocked by: |
Description
As seen here: http://groups.google.com/group/jquery-dev/browse_thread/thread/52091c56fa95458a/92a51f6ff0ddf08b and here: http://discussion.forum.nokia.com/forum/showthread.php?t=140311 the jQuery test suite at http://www.jquery.com/test crashes the Nokia S60 WebKit browser on my N95. I believe this browser is based on code around Safari 1.3 but don't have a copy of that version handy to check.
Change History
comment:2 Changed 4 years ago by joern
- Owner joern deleted
- Component changed from qunit to core
Not a QUnit issue.
comment:3 Changed 4 years ago by crynobone
I did some digging and the problem is due to jQuery DOM Manipulation sequence that remove each element and then insert it using DOM.
During the test, browser would crash in different places which might suggest memory leak. As a temporary solution, I create a plugin to insert HTML using .innerHTML but would much be appreciated if jQuery Team can come out with better solution
comment:4 Changed 4 years ago by dave1010
The Nokia N97 has WebKit 525. No crash, but 1 test failed: 137: ajax module: jQuery.post(String, Hash, Function) - simple with xml (1, 2, 3)
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

One thing I found that crashes the N-95 browser is using .html() when accessing a DIV by ID. E.g.,
$('#aDiv').html('foo')
will immediately crash the browser. This happened with the full, packed, and minified versions of jQuery.