Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test gets skipped with pattern: http3 OR http2
- Manifest: dom/tests/mochitest/bugs/mochitest.toml
<!DOCTYPE HTML>
<html>
<!--
-->
<head>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
</head>
<body>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=465263">Mozilla Bug 465263</a>
<p id="display">
</p>
<div id="content" style="display: none">
</div>
<pre id="test">
<script type="application/javascript">
SimpleTest.waitForExplicitFinish();
addLoadEvent(function() {
window.frames[0].location.hash = '';
"Should have '#' in href now");
window.frames[1].location.hash = '#';
"Should have only one '#' in href");
window.frames[2].location.hash = 'foo';
"Should have '#foo' in href");
window.frames[3].location.hash = '#foo';
"Should have only one '#' in href here too");
SimpleTest.finish();
});
</script>
</pre>
</body>
</html>