blob: 8ce14a8d89a589f4e16ebb3d8928ae4bb283a808 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
</head>
<body>
Test passes if it does not crash.
<div id="console"></div>
<script>
if (window.testRunner)
testRunner.dumpAsText();
iframe1 = document.createElement('iframe');
document.body.appendChild(iframe1);
document1 = iframe1.contentDocument.implementation.createHTMLDocument("document");
var div1 = document1.createElement('div');
div1.style.color = "blue";
var div2 = div1.cloneNode(true);
delete document1;
gc();
div2.style.color = "red";
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>