browserstate / history.js

History.js gracefully supports the HTML5 History/State APIs (pushState, replaceState, onPopState) in all browsers. Including continued support for data, titles, replaceState. Supports jQuery, MooTools and Prototype. For HTML5 browsers this means that you can modify the URL directly, without needing to use hashes anymore. For HTML4 browsers it will revert back to using the old onhashchange functionality.
http://browserstate.github.com/history.js/demo/
Other
10.75k stars 1.35k forks source link

Different value of History.getState().hash under Chrome and IE9 #98

Open pkuczynski opened 13 years ago

pkuczynski commented 13 years ago

Page URL: http://www.mydomain.com/folder/

When pushing the state using following code:

window.History.pushState(null, null, "/folder/item/");

and then reading it using:

var state = window.History.getState();

IE9: state.hash == "item/" Chrome: state.hash == "/folder/item/"

ghost commented 11 years ago

Is this still relevant?