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="about:blank"></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 |
setResult ('result', d.compatMode); |
19 |
d.close (); |
20 |
}, 1000 /* wait until loaded */); |
21 |
</script> |
22 |
|
23 |
</html> |