Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support IE8+ via HTML5-History-API polyfill #48

Closed
wants to merge 2 commits into from

Conversation

tmeasday
Copy link
Contributor

@tmeasday tmeasday commented Feb 9, 2013

This patch gets page.js working when polyfilled with @devote's history polyfill in IE8 + 9. Solves (more or less) #5.

The tests don't even begin to run in IE, but passes elsewhere, and it passes all my tests on my Meteor Router. See tmeasday/meteor-router#33 for more information. Haven't had much of a play outside of that context, but my understanding is that it works.

Changes required:
 - bubbled click events have to bind to the body, not window
 - use attachEvent when addEventLister is not defined
 - event object can be different (e.srcElement, e.which, preventing default).
 - el.location is different
Changes from @devote. We need to look at `history.location` when it exists (for polyfilled browsers, as `document.location` will included a hash.
@josephers
Copy link

This would be great!

@tellnes
Copy link
Contributor

tellnes commented Jun 30, 2013

Any updates?

@nwmcsween
Copy link
Contributor

Any objections to merging this from anyone? @shuvalov-anton

@A
Copy link
Member

A commented Feb 18, 2014

@nwmcsween I have no objections. Let's go for it

@arxpoetica
Copy link

Hoo yeah, lets do it!

@srounce
Copy link

srounce commented Mar 26, 2014

So?..

@mikegioia
Copy link

I would love for this to be pulled in!

@DavidRouyer
Copy link

Please, add this !

@netpoetica
Copy link

+1 also would love to see some documentation about it, How to use Pagejs in IE8

@A
Copy link
Member

A commented Jul 1, 2014

#109

@jonathanong
Copy link
Contributor

sorry for the delayed response. closing in favor of #109

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.