OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <body> | 2 <body> |
3 <div id=container> | 3 <div id=container> |
4 <input> | 4 <input> |
5 </div> | 5 </div> |
6 <script src="../js/resources/js-test-pre.js"></script> | 6 <script src="../../resources/js-test.js"></script> |
7 <script> | 7 <script> |
8 description("iframes added to a subtree that's being removed should not load"); | 8 description("iframes added to a subtree that's being removed should not load"); |
9 var container = document.querySelector('#container'); | 9 var container = document.querySelector('#container'); |
10 var input = document.querySelector('input'); | 10 var input = document.querySelector('input'); |
11 input.focus(); | 11 input.focus(); |
12 input.addEventListener('blur', function() { | 12 input.addEventListener('blur', function() { |
13 iframe = document.createElement('iframe'); | 13 iframe = document.createElement('iframe'); |
14 input.parentNode.appendChild(iframe); | 14 input.parentNode.appendChild(iframe); |
15 }); | 15 }); |
16 container.innerHTML = ''; | 16 container.innerHTML = ''; |
17 shouldBeNull("iframe.contentWindow"); | 17 shouldBeNull("iframe.contentWindow"); |
18 </script> | 18 </script> |
19 </body> | 19 </body> |
OLD | NEW |