blob: 1e8d9d51e66f66b29459b46d53db36d9df5804f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<!DOCTYPE html>
<html class="reftest-wait">
<body onload="loaded()">
<iframe id="foo"></iframe>
<script type="text/javascript">
function loaded() {
var n = document.getElementById('foo');
var f = n.contentWindow;
f.document.open();
f.document.write('');
f.onload = function() {
f.document.designMode = 'on';
setTimeout(function() {
f.document.designMode='on';
f.location = 'data:text/html;charset=utf-8,<body>FAIL<script>document.body.innerHTML="PASS"<\/script>';
n.addEventListener("load",
function() { document.documentElement.className = ''; });
}, 0);
};
f.document.close();
}
</script>
</body>
</html>
|