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

Remove requestSubmit polyfill #908

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

seanpdoyle
Copy link
Contributor

A polyfill for HTMLFormElement.requestSubmit was introduced and inlined as part of the 7.1.0 release.

As of April 2023, that method has total support and 100% Compatibility with evergreen browsers.

This commit removes that polyfill.

@rik
Copy link
Contributor

rik commented Apr 18, 2023

I believe it is too early to remove it. Many people are still on devices that can't upgrade to Safari 16+. See https://caniuse.com/mdn-api_htmlformelement_requestsubmit with "Usage relative" selected.

As a side note, is there a browser support policy for the project?

@seanpdoyle
Copy link
Contributor Author

Would it be an appropriate stance to consider inlined, built-in polyfills outside the bounds of [email protected], while encouraging those that need them to depend on third-party packages like event-submitter-polyfill and form-request-submit-polyfill?

@rik
Copy link
Contributor

rik commented Apr 18, 2023

I'm not a maintainer and I realise there is a burden keeping polyfills within the Turbo codebase. That being said, as a user and someone setting up Turbo for several companies, I appreciate the library working out of the box with browsers that still have enough users.

@seanpdoyle seanpdoyle force-pushed the remove-request-submit-polyfill branch from 7ade411 to b157ce0 Compare July 21, 2023 15:23
@afcapel
Copy link
Collaborator

afcapel commented Aug 24, 2023

As a data point, we still support Safari 14.1+ at Basecamp. Safari is particularly sticky because versions are tied to the OS and the OS is tied to the hardware so when we deprecate one Safari version we may be forcing customers to updated their hardware.

A polyfill for [HTMLFormElement.requestSubmit][] was introduced and
inlined as part of the [7.1.0][] release.

As of April 2023, that method has total support and 100%
[Compatibility][] with evergreen browsers.

This commit removes that polyfill.

[HTMLFormElement.requestSubmit]: https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/requestSubmit
[7.1.0]: hotwired@d4805a4
[Compatibility]: https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/requestSubmit#browser_compatibility
@seanpdoyle seanpdoyle force-pushed the remove-request-submit-polyfill branch from b157ce0 to ae13da5 Compare December 5, 2024 14:44
@seanpdoyle
Copy link
Contributor Author

@jorgemanrubia @brunoprietog is the removal of this polyfill worth re-considering?

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

Successfully merging this pull request may close these issues.

3 participants