blob: 21905ea888e63df75406f6fa2ea7e91c93eaae56 [file] [log] [blame]
function test() {
if (window.testRunner) testRunner.dumpAsText();
var node = document.createElement("div");
document.getElementById("replace").parentNode.replaceChild(node, document.getElementById("replace"));
<body onload="test()">
<p>This tests for a bug in replaceChild where it would fail to replace an element if it was the first child of its container.
See <a href="">bug 6782</a> for details.
If the test is successful you will see an object description below, and if it fails you will see "null".</p>
<div><div id="replace"></div></div>
<div id="result"></div></body>