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

chore: remove Internet Explorer detection #1566

Merged
merged 2 commits into from
Nov 7, 2023
Merged

chore: remove Internet Explorer detection #1566

merged 2 commits into from
Nov 7, 2023

Conversation

queengooborg
Copy link
Collaborator

@queengooborg queengooborg commented Nov 4, 2023

This PR removes bad browser support detection from the JavaScript editor. There is a clause that checks if document.all is supported, assuming that IE10 and earlier are the only browsers that support it (and that it is non-standard). This assumption is false, however (see https://developer.mozilla.org/en-US/docs/Web/API/Document/all#Browser_compatibility); all modern browsers support it (and it is a part of the HTML standard). Additionally, document.all is interestingly falsy in browsers (!!document.all == false), so the code within the if block was running anyways.

Note: we can also just consider this code removal as dropping IE support!

@queengooborg queengooborg requested a review from a team as a code owner November 4, 2023 21:45
@queengooborg queengooborg requested a review from caugner November 5, 2023 03:56
@caugner caugner changed the title Remove bad browser support detection chore: remove Internet Explorer detection Nov 7, 2023
@caugner caugner merged commit ce9a2f0 into main Nov 7, 2023
7 checks passed
@caugner caugner deleted the document-all branch November 7, 2023 11:17
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.

2 participants