| <html> |
| <head> |
| <script type="text/javascript"> |
| function test() { |
| if (window.testRunner) |
| testRunner.dumpAsText(); |
| |
| document.getElementById("s1").firstChild.nodeValue="SU"; |
| document.getElementById("s2").firstChild.insertData(0, "CC"); |
| document.getElementById("s3").firstChild.appendData("ES"); |
| document.getElementById("s4").firstChild.replaceData(0, 1, "S"); |
| } |
| </script> |
| <body onLoad="test()"> |
| <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=4616">bug 4616</a>: |
| Setting textNode.nodeValue does not work when nodeValue is whitespace only.</p> |
| <p>Should say "SUCCESS":</p> |
| <div id="s1"> </div><div id="s2"> </div><div id="s3"> </div><div id="s4"> </div> |
| </body> |
| </html> |