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

[Feature request] Add URLSearchParams polyfill for Firefox < 44 #311

Closed
bjoern-tantau opened this issue Oct 29, 2019 · 1 comment · Fixed by #312
Closed

[Feature request] Add URLSearchParams polyfill for Firefox < 44 #311

bjoern-tantau opened this issue Oct 29, 2019 · 1 comment · Fixed by #312
Assignees

Comments

@bjoern-tantau
Copy link

What

The URLSearchParams polyfill should be added for all Firefox versions below 44.

Details

Although URLSearchParams is available from Firefox version 29 and onwards. They only added useful features like entries() in version 44. See https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams#Browser_compatibility

Because of that one might think that there is support when only half of the features are supported.
Well, at least I did. ;-)

Workaround

if (window.URLSearchParams && !URLSearchParams.entries) {
    document.write('<script src="https://polyfill.io/v3/polyfill.min.js?flags=always&features=URL"></' + 'script>');
}
@JakeChampion JakeChampion transferred this issue from polyfillpolyfill/polyfill-service Oct 29, 2019
@JakeChampion
Copy link
Owner

Pull-request for this work is at #312

@JakeChampion JakeChampion self-assigned this Oct 29, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants