blob: 1953709269efad04a3bc79b5755051860336dc2c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
<!DOCTYPE html>
<meta charset="utf-8">
<title>history.pushState() with an empty string URL</title>
<link rel="help" href="https://github.com/whatwg/html/issues/9343">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
"use strict";
test(() => {
location.hash = "test";
history.pushState(null, null, "");
assert_equals(location.hash, "#test");
});
</script>
|