1 <html xmlns=
"http://www.w3.org/1999/xhtml">
5 testRunner
.dumpAsText();
7 var target
= document
.getElementById('target');
9 target
.innerHTML
+= "\t<p></p>";
10 if (target
.firstChild
.nodeName
== "#text")
11 target
.innerHTML
= "SUCCESS";
13 target
.innerHTML
= "FAIL. Incorrect node type for whitespace: " + target
.firstChild
.nodeName
+ ".";
16 <body onload=
"test();">
17 <p>Test for
<a href=
"http://bugs.webkit.org/show_bug.cgi?id=16731">bug
16731</a>:
18 Incorrect node type for whitespace when setting innerHTML in an XHTML document.
</p>
19 <div id=
"target"></div>