history.js icon indicating copy to clipboard operation
history.js copied to clipboard

In IE9 window.location.search isn’t populated after doing pushState()

Open alfonsomunozpomer opened this issue 10 years ago • 0 comments

If you go to the History.js demo site with IE9, clicking on the pushSate() buttons changes window.location.hash, but window.location.search remains empty.

E.g. output from IE9 JavaScript console:

>> window.location 
http://browserstate.github.io/history.js/demo/#?state=3&_suid=143827658381005913691283474433 {
    hash : "#?state=3&_suid=143827658381005913691283474433",
    host : "browserstate.github.io",
    hostname : "browserstate.github.io",
    href : "http://browserstate.github.io/history.js/demo/#?state=3&_suid=143827658381005913691283474433",
    pathname : "/history.js/demo/",
    port : "",
    protocol : "http:",
    search : "",
    assign :  function assign() {     [native code] } ,
    reload :  function reload() {     [native code] } 
    ...
} 

alfonsomunozpomer avatar Jul 30 '15 17:07 alfonsomunozpomer