Closed visualasparagus closed 11 years ago
The crux of the issue seems to be that history.pushState ends up being undefined when modernizr loads first.
The crux of the issue seems to be that history.pushState ends up being undefined when modernizr loads first.
This problem is and I already know about it. I did pull request to the branch Modernizr: https://github.com/Modernizr/Modernizr/pull/976 but it refused to accept
You can use _window_.history.pushState
Using the prefix window
in IE6-7 will work well. It's not ideal, but in order to get around the problem, it is a decent option.
Thanks for the tip. Hopefully Modernizr will accept the request soon to fix the issue.
Thanks for the great polyfill!
I've noticed a strange issue with IE6 and IE7 on XP. If I load Modernizr first, before history.js then things aren't working. Ideally I would like to use Modernizr.load to conditionally load the history.js. My simple test code is below. On IE8 it's fine
DOES NOT WORK
WORKS