3 <script type=
"text/javascript">
6 testRunner
.dumpAsText();
8 document
.getElementById("s1").firstChild
.nodeValue
="SU";
9 document
.getElementById("s2").firstChild
.insertData(0, "CC");
10 document
.getElementById("s3").firstChild
.appendData("ES");
11 document
.getElementById("s4").firstChild
.replaceData(0, 1, "S");
14 <body onLoad=
"test()">
15 <p>Test for
<a href=
"https://bugs.webkit.org/show_bug.cgi?id=4616">bug
4616</a>:
16 Setting textNode.nodeValue does not work when nodeValue is whitespace only.
</p>
17 <p>Should say
"SUCCESS":
</p>
18 <div id=
"s1"> </div><div id=
"s2"> </div><div id=
"s3"> </div><div id=
"s4"> </div>