Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<meta charset="utf-8">
<title>Setting location.hash on about:blank</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<iframe></iframe>
<script>
"use strict";
test(() => {
const l = frames[0].location;
assert_equals(l.href, "about:blank");
l.hash = "#baz";
assert_equals(l.hash, "#baz");
assert_equals(l.href, "about:blank#baz");
}, "Setting hash on an about:blank iframe location");
</script>