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

history.location.pathname behavior not consistent between HTML5 and HTML4 fallback #77

Open
luhn opened this issue Sep 10, 2015 · 4 comments

Comments

@luhn
Copy link

luhn commented Sep 10, 2015

The base URL is the current page in the HTML5 implementation (as per the spec), but the domain root in HTML4 implementation.

For example, running this fiddle in Chrome 45 yields the expected output.

* /luhn/auth3x5q/show/
* /luhn/auth3x5q/show/rel/at/ive

But run it on IE9, and you get much different output:

* /
* /rel/at/ive

Changing the basepath resolves this inconsistencies.

@luhn
Copy link
Author

luhn commented Sep 10, 2015

Actually, changing the basepath then breaks absolute URLs.

@devote
Copy link
Owner

devote commented Sep 10, 2015

basePath works similar HTML-element BASE. But I will think about your problem.

@luhn
Copy link
Author

luhn commented Sep 10, 2015

<base> only affects relative URLs, so the behavior shown in the last fiddle I linked is inconsistent with it.

@devote
Copy link
Owner

devote commented Sep 10, 2015

<base> only affects relative URLs

Yes, you're absolutely right


I will think over this problem, when there will be free time. Thanks!

P.S. If you know how to fix, I'll be happy to consider your decision.

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

No branches or pull requests

2 participants