OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <title>moving modified IFRAME in document (original page about:blank, DOM modifi
cation)</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.body.appendChild(ifr.contentDocument.createElement('p')).t
extContent = 'Modified document'; |
| 12 setTimeout(function() { |
| 13 ifr.onload = function() { |
| 14 assert_equals(ifr.contentDocument.body.textContent.indexOf('Modified'), -1
); |
| 15 done(); |
| 16 }; |
| 17 document.getElementById('target').appendChild(ifr); |
| 18 }, 100); |
| 19 } |
| 20 </script> |
OLD | NEW |