| 1 |
<!DOCTYPE HTML> |
| 2 |
<html> |
| 3 |
<head> |
| 4 |
<title>document.open () and document.compatMode</title> |
| 5 |
<script src="../../../support/result.js"></script> |
| 6 |
</head> |
| 7 |
|
| 8 |
<p id=result class=FAIL>FAIL (noscript)</p> |
| 9 |
|
| 10 |
<iframe src="no-quirks.html"></iframe> |
| 11 |
|
| 12 |
<script> |
| 13 |
document.getElementById ('result').firstChild.data = 'FAIL'; |
| 14 |
window.setTimeout (function () { |
| 15 |
var iframe = document.getElementsByTagName ('iframe')[0]; |
| 16 |
var d = iframe.contentWindow.document; |
| 17 |
d.open (); |
| 18 |
d.write (' '); |
| 19 |
setResult ('result', d.compatMode); |
| 20 |
d.close (); |
| 21 |
}, 1000 /* wait until loaded */); |
| 22 |
</script> |
| 23 |
|
| 24 |
</html> |