2009-09-25 09:50:26 -07:00
|
|
|
<!DOCTYPE HTML>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<base href="http://example.org" />
|
|
|
|
</head>
|
|
|
|
<body onload="load();">
|
|
|
|
Initial state
|
|
|
|
|
|
|
|
<script>
|
|
|
|
function load() {
|
|
|
|
// Nuke and rebuild the page. If document.open() clears the <base> properly,
|
|
|
|
// our new <base> will take precedence and the test will pass.
|
|
|
|
document.open();
|
2010-04-28 04:44:34 -07:00
|
|
|
document.write("<html><base href='http://mochi.test:8888' /><body>" +
|
|
|
|
"<a id='link' href='/'>A</a></body></html>");
|
2009-09-25 09:50:26 -07:00
|
|
|
|
|
|
|
// Tell our parent to have a look at us.
|
|
|
|
parent.gGen.next();
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|