summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/html/browsers/history/the-history-interface/history_go_to_uri-1.html
blob: 49249ff000239e799d99638a4fac68d0556c4adf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!doctype html>
<script src="history.js"></script>
<script>
  onunload = function() {}

  onload = function() {
    if (!opener.started) {
      queue_next();
    } else {
      opener.pages.push(id);
      if (!opener.gone) {
        // This is meant to test that passing a string is not supported.
        // According to the spec, the value passed to 'go' must be an int.
        // Internet Explorer supports passing a string and will navigate
        // to that Url. This test will protect against regressing in
        // this area and reverting back to IE's incorrect behavior.
          history.go("history_entry.html");
          opener.gone = true;
      }
    }
  };
</script>