blob: c76cf40d5d0510164e68e5d3e92d6eb2292da315 [file] [log] [blame]
<body onload="test()">
<p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=14968">bug 14968</a>:
document.open() erroneously returns void instead of the new Document.</p>
<div id=result>FAILURE</div>
<script>
if (window.testRunner)
testRunner.dumpAsText();
function test()
{
var d = frames[0].document.open();
d.write("<p>SUCCESS</p>");
d.close();
document.getElementById("result").innerHTML = d.body.innerHTML;
}
</script>
<iframe src="data:text/html,FAILURE"></iframe>
</body>