Opened 2 months ago
Last modified 2 months ago
#64278 new task (blessed)
Remove remaining Internet Explorer code
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Awaiting Review | Priority: | normal |
| Severity: | minor | Version: | 6.9 |
| Component: | General | Keywords: | has-patch |
| Focuses: | javascript, css | Cc: |
Description
No version of Internet Explorer is still supported by WordPress, but miscellaneous scripts still contain hacks and workarounds to support it. This ticket is to track instances and resolve them.
Known examples:
- Dashed border fix in
imgareaselectLine 405 - Rest selection area positions in
imgareaselectLine 350 - Fix background PNGs in
farbtasticLine 38 - Thickbox hacks Line 47, also line 301, 310
- TinyMCE skins effecting galleries and gallery items
- Early exit on autoresize textarea in dashboard.js Line 202
- Early exit in customize/controls.js for IE9
- tinymce/plugins/wordpress/plugin.js setting body classes
- Check whether document.msHidden is present in heartbeat.js
- emoji.js browser checks
- twentytwentyone/assets/js/polyfills.js
- gruntfile.js css minification compatibility
- some settings in wp-admin/css/forms.css that are IE specific
- use classlist methods in twentynineteen/js/touch-keyboard-navigation.js & priority-menu.js
- timezone methods in dashboard.js
This is just a rough look at some of the possible issues. None of these are particularly important, but it would enable us to clean up the codebase in a variety of ways by removing exceptions.
Attachments (1)
Change History (3)
@
2 months ago
Remove Legacy Internet Explorer-Specific Code and Clean Up Outdated Scripts in WordPress
#2
@
2 months ago
- Keywords has-patch added
- Version set to trunk
This patch removes legacy Internet Explorer (IE) specific code and cleans up outdated scripts in WordPress, ensuring compatibility with modern browsers.
Changes Made:
- Removed IE-specific hacks in JavaScript and CSS files (e.g., imgareaselect, farbtastic, thickbox, tinymce, heartbeat.js, emoji.js, dashboard.js).
- Cleaned up IE-specific polyfills and workarounds in theme files (twenty-nineteen, twenty-twenty-one).
- Refactored code in functions.php and polyfills.js to remove unnecessary IE support.
Note: See
TracTickets for help on using
tickets.
This is a very good idea.