OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="resources/javascriptURL-execution-context.js"></script> | 4 <script src="resources/javascriptURL-execution-context.js"></script> |
5 <script> | 5 <script> |
6 function setter(frame, url) { | 6 function setter(frame, url) { |
7 var newNode = document.createAttribute('src'); | 7 var newNode = document.createAttribute('src'); |
8 newNode.value = url; | 8 newNode.value = url; |
9 frame.setAttributeNode(newNode); | 9 frame.setAttributeNode(newNode); |
10 } | 10 } |
11 </script> | 11 </script> |
12 </head> | 12 </head> |
13 <body> | 13 <body> |
14 <p>This test passes as long as the word 'FAIL' and an accompanying message d
o not appear in the subframe.</p> | 14 <p>This test passes as long as the word 'FAIL' and an accompanying message d
o not appear in the subframe.</p> |
15 <pre id='console'></pre> | 15 <pre id='console'></pre> |
16 <iframe id='aFrame' src='http://localhost:8000/security/resources/cross-fram
e-iframe.html'></iframe> | 16 <iframe id='aFrame' name='aFrame' src='http://localhost:8000/security/resour
ces/cross-frame-iframe.html'></iframe> |
17 </body> | 17 </body> |
18 </html> | 18 </html> |
OLD | NEW |