Which version of Internet Explorer are you referring to? Works fine in the IE browsers I have tested (Ie7, IE8, IE9).
Hey Dean – Sorry to be a pain again.
Hmm. Just tried it on IE9 on Windows7.
Surprised to hear you say it works, especially on the older versions. Everything I have seen says that IE does not yet support history.pushState() ( http://stackoverflow.com/questions/3722815/does-internet-explorer-support-pushstate-and-replacestate )
I wonder if I am missing some kind of workaround? My site is http://whatthefestival.com/_wp
Thanks much.
Do you know of any other sites utilizing your plugin? Just curious to take a look. I’m wondering if my issues are unique to my situation.
Even still, seems like some integration with Modernizr or even maybe History.js plugin could resolve any compatibility issues.
Right, I see sorry I didn’t realise you were on about the history feature (skimmed your post), I apologies.
I was aware pushState wouldn’t work in older versions of IE but thought it worked in the latest ones :s. But thats for the information I will work on the code and provide the “fallback method” you are talking about!
Thanks for this 🙂
quick update. There are definitely more elegant solutions and there must be ways to recreate the same functionality in IE using History.js.. but for now, wrapping the history.pushState call in a conditional check like
if (typeof history.pushState !== “undefined”) {
}
alleviates the js error and gets the site working in IE. It doesn’t update the URL but I’m really not too concerned with perfect functionality for IE people.
I have now implemented your recommended fix, but as you suggest, I need to implement a better approach ASAP