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