OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <title>moving modified IFRAME in document (original page about:blank, document.w
rite modification)</title> |
| 3 <script src="../../../../../../resources/testharness.js"></script> |
| 4 <script src="../../../../../../resources/testharnessreport.js"></script> |
| 5 <link rel="help" href="https://html.spec.whatwg.org/#iframe-load-event-steps"> |
| 6 <iframe src="about:blank"></iframe> |
| 7 <div id="target"></div> |
| 8 <script> |
| 9 onload = function() { |
| 10 var ifr = document.getElementsByTagName('iframe')[0]; |
| 11 ifr.contentDocument.open(); |
| 12 ifr.contentDocument.write('Modified document'); |
| 13 ifr.contentDocument.close(); |
| 14 setTimeout(function() { |
| 15 ifr.onload = function() { |
| 16 assert_equals(ifr.contentDocument.body.textContent.indexOf('Modified'),
-1); |
| 17 done(); |
| 18 }; |
| 19 document.getElementById('target').appendChild(ifr); |
| 20 }, 100); |
| 21 } |
| 22 </script> |
OLD | NEW |