Make WordPress Core

Opened 2 months ago

Last modified 2 months ago

#64278 new task (blessed)

Remove remaining Internet Explorer code

Reported by: joedolson's profile joedolson 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 imgareaselect Line 405
  • Rest selection area positions in imgareaselect Line 350
  • Fix background PNGs in farbtastic Line 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)

64278.diff (26.0 KB) - added by iflairwebtechnologies 2 months ago.
Remove Legacy Internet Explorer-Specific Code and Clean Up Outdated Scripts in WordPress

Download all attachments as: .zip

Change History (3)

#1 @szepe.viktor
2 months ago

This is a very good idea.

Last edited 2 months ago by szepe.viktor (previous) (diff)

@iflairwebtechnologies
2 months ago

Remove Legacy Internet Explorer-Specific Code and Clean Up Outdated Scripts in WordPress

#2 @iflairwebtechnologies
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.