summaryrefslogtreecommitdiffstats
path: root/dom/html/test/file_bug209275_1.html
blob: 3f7233876b590845e96bc05502b8de31409544c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE HTML>
<html>
<head>
  <base href="http://example.org" />
</head>
<body onload="load();">
Initial state

<script>
function load() {
  // Nuke and rebuild the page.
  document.removeChild(document.documentElement);
  var html = document.createElement("html");
  var body = document.createElement("body");
  html.appendChild(body);
  var link = document.createElement("a");
  link.href = "#";
  link.id = "link";
  body.appendChild(link);
  document.appendChild(html);

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

</body>
</html>