Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / xhtml-fragment-whitespace.xhtml
blob5c0850e4367d0d0f542b362b6866aa8a2431f8f4
1 <html xmlns="http://www.w3.org/1999/xhtml">
2 <script>
3 function test() {
4 if (window.testRunner)
5 testRunner.dumpAsText();
7 var target = document.getElementById('target');
9 target.innerHTML += "\t&lt;p>&lt;/p>";
10 if (target.firstChild.nodeName == "#text")
11 target.innerHTML = "SUCCESS";
12 else
13 target.innerHTML = "FAIL. Incorrect node type for whitespace: " + target.firstChild.nodeName + ".";
15 </script>
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>
20 </body>
21 </html>