1 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2 <html xmlns=
"http://www.w3.org/1999/xhtml">
4 <title>replaceChild siblings bug
</title>
7 testRunner
.dumpAsText();
10 var obj
= document
.getElementById('child1');
11 var parent
= document
.getElementById('parent');
12 var nextobj
= document
.getElementById('child2');
13 var replaced
= parent
.replaceChild(obj
, nextobj
);
14 document
.getElementById('result').innerText
= parent
.children
.length
== 1 ? "PASS" : "FAIL";
18 <body onload=
"test()">
20 This is a test for
<i>https://bugs.webkit.org/show_bug.cgi?id=
6069 Assertion failure in LayoutBlockFlow::addChildToFlow during replaceChild
</i>.
21 It tests whether replaceChild() works correctly when the new node and the
22 old node are siblings.
25 <p>Test result:
<span id=
"result"></span></p>
27 <div id=
"child1"></div><div id=
"child2"></div>