2 <html class=
"reftest-wait">
3 <body onload=
"loaded()">
4 <iframe id=
"foo"></iframe>
5 <script type=
"text/javascript">
7 dump("459443-1.html: Entering loaded()\n");
8 var n
= document
.getElementById('foo');
10 // Just to detect if/when the iframe might be firing its load event
11 // before we set up its final className-clearing load event handler:
12 n
.addEventListener("load",
14 dump("459443-1.html: Entering n initial " +
15 "no-op load callback\n");});
17 var f
= n
.contentWindow
;
20 f
.onload = function() {
21 dump("459443-1.html: Entering f.onload callback\n");
22 f
.document
.designMode
= 'on';
23 setTimeout(function() {
24 dump("459443-1.html: Entering setTimeout callback\n");
25 f
.document
.designMode
='on';
26 f
.location
= 'data:text/html;charset=utf-8,<body>FAIL<script>document.body.innerHTML="PASS"<\/script>';
27 n
.addEventListener("load",
29 dump("459443-1.html: Entering n final " +
30 "load callback; clearing className\n");
31 document
.documentElement
.className
= ''; });