Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / loader / empty-ref-versus-no-ref.html
blob36a066a7b2c673f4aa520716213ebaf7d3b92334
1 <html>
2 <head>
3 <script>
5 if (window.testRunner)
6 testRunner.dumpAsText();
8 function runTest() {
9 window.location.hash = '#foobarbaz';
10 var node = document.createElement('div');
11 node.innerHTML = 'anchor has been set';
12 document.body.appendChild(node);
14 window.location.hash = '#';
15 var node = document.createElement('div');
16 node.innerHTML = 'anchor has been removed';
17 document.body.appendChild(node);
20 </script>
21 </head>
23 <body onload='runTest()'>
24 Test for https://bugs.webkit.org/show_bug.cgi?id=18951<br>
25 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>
26 Not anymore!<br>
27 </body>
28 </html>