blob: b13961f3d66129eb0b413adf63b3ee9b9808bc5a [file] [log] [blame]
<p>This test passes if it doesn't crash!</p>
<iframe id="onlybear"
src="data:text/html, <!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0//EN' 'http://www.w3.org/TR/html4/strict.dtd'><html></html>"
>
</iframe>
<script>
window.onload = function() {
var iframe = document.getElementById("onlybear");
var doc = iframe.contentDocument;
iframe.parentNode.removeChild(iframe);
doc.documentElement.clientWidth;
doc.documentElement.clientHeight;
}
</script>