file_bug209275_3.html (536B)
1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <base href="http://example.org" /> 5 </head> 6 <body onload="load();"> 7 Initial state 8 9 <script> 10 function load() { 11 // Nuke and rebuild the page. If document.open() clears the <base> properly, 12 // our new <base> will take precedence and the test will pass. 13 document.open(); 14 document.write("<html><base href='http://mochi.test:8888' /><body>" + 15 "<a id='link' href='/'>A</a></body></html>"); 16 17 // Tell our parent to have a look at us. 18 parent.gGen.next(); 19 } 20 </script> 21 22 </body> 23 </html>