This occurs in the latest Nightly and also Latest release of Safari. You can view the error here: http://extjs.com/deploy/dev/examples/history/history.html Or simple open web inspector and type: window.location.hash = "#hello" It will not appear straight away, you must open a new tab/switch to an existing tab then activate the previous tab again, then it appears.
*** Bug 26535 has been marked as a duplicate of this bug. ***
Given the size of the JavaScript behind that page, it's hard to see where the problem is. We could do with a reduced test case that contained only the code relevant to demonstrating the problem.
Created attachment 32121 [details] Testcase for the bug
I don't get it, this is a critical bug- LOADS of modern/web 2.0 websites use the hash for history management. Would this not need to be fixed ASAP?
Is there any known workaround for this bug?
I cannot reproduce this with Safari 4.0.4 on Mac OS X 10.5.8. I open the attached test case, click "Add hash", and "#hello" is immediately appended. I also tried doing 'window.location.hash = "#hello"' in Web Inspector - that works, too. Do you have any "Safari enhancers" installed? It's possible that this is not a WebKit or Safari bug at all.
I'm also not able to reproduce this (either with the attached testcase or with http://extjs.com/deploy/dev/examples/history/history.html). Please re-open if you observe this happening with either Safari 5.0 or a WebKit nightly.