<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> |