summaryrefslogtreecommitdiffstats
path: root/dom/html/test/file_bug209275_3.html
blob: 25441159014e2eebb21dba356c0f7b5a87d3b054 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!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();
  document.write("<html><base href='http://mochi.test:8888' /><body>" + 
                 "<a id='link' href='/'>A</a></body></html>");

  // Tell our parent to have a look at us.
  parent.gGen.next();
}
</script>

</body>
</html>