Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / dom / HTMLDocument / document-open-return-value.html
1 <body onload="test()">
2 <p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=14968">bug 14968</a>:
3 document.open() erroneously returns void instead of the new Document.</p>
4 <div id=result>FAILURE</div>
5 <script>
6 if (window.testRunner)
7     testRunner.dumpAsText();
8
9 function test()
10 {
11     var d = frames[0].document.open();
12     d.write("<p>SUCCESS</p>");
13     d.close();
14     document.getElementById("result").innerHTML = d.body.innerHTML;
15 }
16 </script>
17 <iframe src="data:text/html,FAILURE"></iframe>
18 </body>