blob: 66b4cc6f82b59a0f36617983984465782e22ae5d (
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.replaceState() 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.replaceState(null, null, "");
assert_equals(location.hash, "#test");
});
</script>
|