blob: 085eafa69aaedafbc77b66b6239d3c87f6df6dfc [file] [log] [blame]
<html>
<head>
<script>
if (window.layoutTestController)
layoutTestController.dumpAsText();
function runTest() {
window.location.hash = '#foobarbaz';
var node = document.createElement('div');
node.innerHTML = 'anchor has been set';
document.body.appendChild(node);
window.location.hash = '#';
var node = document.createElement('div');
node.innerHTML = 'anchor has been removed';
document.body.appendChild(node);
}
</script>
</head>
<body onload='runTest()'>
Test for https://bugs.webkit.org/show_bug.cgi?id=18951<br>
WebKit used to be confused when setting the ref to an empty anchor from a non-empty anchor, causing all sorts of weird loading behavior.<br>
Not anymore!<br>
</body>
</html>