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

fix(polyfills): update baseURI for base w/out href #1995

Merged

Conversation

bbellmyers
Copy link
Contributor

Fixes #1994

If document base tag only has a target, and does not have an href, baseURI polyfill currently returns undefined. Update the polyfill to check first if base.href has a value, otherwise returns document.URL as normal.

@bbellmyers
Copy link
Contributor Author

There appear to be other polyfills in the codebase, for instance, in app. Should this also be fixed?

@bbellmyers
Copy link
Contributor Author

@manucorporat @adamdbradley - thoughts?

Copy link
Contributor

@simonhaenisch simonhaenisch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, @adamdbradley.

@simonhaenisch
Copy link
Contributor

@bbellmyers what other polyfills are you referring to?

@bbellmyers
Copy link
Contributor Author

@simonhaenisch I think it’s just these two files. I had initially only fixed one, but added a second commit to fix the other one too.

@manucorporat manucorporat merged commit 8582c93 into ionic-team:master Nov 18, 2019
@bbellmyers bbellmyers deleted the bbellmyers/baseURI-polyfill branch November 18, 2019 21:36
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.

baseURI polyfill fails if base tag has no href
3 participants