summaryrefslogtreecommitdiff
path: root/docshell/test/navigation/file_document_write_1.html
blob: 169046a9b32e521c97c4e47f203e0100a8d6d5b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<html>
  <head>
    <script>
      function start() {
        var length = history.length;
        document.open();
        document.write("<h5 id='dynamic'>document.written content</h5>");
        document.close();
        opener.is(history.length, length,
                  "document.open/close should not change history");
        opener.nextTest();
        window.close();
      }
    </script>
  </head>
  <body onload="start();">
    <h5>static content</h5>
  </body>
</html>