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

Modify history.js to match current W3C popState event semantics (uncompresses only) #137

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rroesler
Copy link

@rroesler rroesler commented Dec 8, 2011

"
4. If the third argument is present, set the document's current address to the absolute URL that was found earlier in this algorithm.

Since this is neither a navigation of the browsing context nor a history traversal, it does not cause a hashchange event to be fired.
"
I believe that " this is not a navigation" also applies to popState (as this this cause applies to push push and replace state)

The changes to history.js bring statechange (event) in line with the spec.

rroesler added 2 commits December 7, 2011 19:09
"
4. If the third argument is present, set the document's current address to the absolute URL that was found earlier in this algorithm.

Since this is neither a navigation of the browsing context nor a history traversal, it does not cause a hashchange event to be fired.
"
I believe that " this is not a navigation" also applies to popState (as this this cause applies to push push and replace state)

The changes to history.js bring statechange (event) in line with the spec.
@weepy
Copy link

weepy commented Jun 18, 2012

does this change make history a true polyfill ? I.e. you can drop it in and it just 'works' (apart from the # in the url)

@martijn
Copy link

martijn commented Jun 18, 2012

+1 The way history.js diverts from the spec makes it completely unusable as a drop-in replacement to overcome one or two minor browser quirks.

@STRML
Copy link
Contributor

STRML commented Jul 27, 2012

This appears to fix issue 47.

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

Successfully merging this pull request may close these issues.

4 participants