devote / HTML5-History-API

HTML5 History API expansion for browsers not supporting pushState, replaceState
http://spb-piksel.ru
MIT License
1.02k stars 182 forks source link

Popstate event not firing when pressing Back/Forward button in IE8-IE9 #72

Closed ivan-gerasin closed 9 years ago

ivan-gerasin commented 9 years ago

Well, problem is described in title. I'm using .on() method. In Chrome with and without library all works OK. But in IE it's not triggering. Is threre some nicety may be?

devote commented 9 years ago

Hi, jQuery version is? Thanks!

devote commented 9 years ago

This demo works correctly on the IE8-9

ivan-gerasin commented 9 years ago

I'm using jQuery 1.11.1. I've change event attaching to native attachEvent method, and it works. Looks like problem with jQuery. Code is simple, I don't know where I might wrong. $(window).on('popstate', function(){ /* some code */ });

devote commented 9 years ago

My test works fine http://devote.github.io/tests/history/popstate.html in IE11 with emulate IE8-9. Maybe I need to look for a machine with a built-in version of the browser IE8-9. I'll let you know when I find IE8-9 native

devote commented 9 years ago

I run my test using IE8 and IE9. Everything works fine!

ivan-gerasin commented 9 years ago

I found that different builds/veriosn of IE8 behave different. Some version have bug, that is not in another version. I will check your lib in other build in next week.

devote commented 9 years ago

Ok. Please close this issue if your problem is successfuly resolved. Thanks!

devote commented 9 years ago

Please reopen it or create new issue if you needed. Thanks!