Skip to content
Permalink
Browse files

Slightly altered a test that was causing IE7 in some cases to hard cr…

…ash. The test was setting .html() to many divs, some of which were inside other divs effectly deleting them from the DOM. I suspect this caused some instability and may only have been an IE7 with IEDevBar issue. The test still correctly tests the functionality of that unit test.
  • Loading branch information
davids549 committed Nov 18, 2007
1 parent 264ffbc commit 2e2a1b8910afcc23b1f71c188dca2d88067d70da
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/unit/core.js
@@ -883,11 +883,11 @@ var scriptorder = 0;

test("html(String)", function() {
expect(10);
var div = $("div");
var div = $("#main > div");
div.html("<b>test</b>");
var pass = true;
for ( var i = 0; i < div.size(); i++ ) {
if ( div.get(i).childNodes.length == 0 ) pass = false;
if ( div.get(i).childNodes.length != 1 ) pass = false;
}
ok( pass, "Set HTML" );

0 comments on commit 2e2a1b8

Please sign in to comment.
You can’t perform that action at this time.