Make WordPress Core


Ignore:
Timestamp:
01/05/2026 04:02:03 PM (9 months ago)
Author:
jonsurrell
Message:

Scripts: Remove default attributes from tags.

SCRIPT, STYLE, and stylesheet LINK tags do not require a type attribute since the HTML5 standard was released in 2008. Removing the type attribute simplifies logic and normalizes the produced HTML content.

Developed in ​https://github.com/WordPress/wordpress-develop/pull/10664.

Follow-up to [61411], [46164].

Props jonsurrell, sabernhardt, westonruter.
Fixes #64428. See #59883, #64442.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/ms.php

    r60416 r61440  
    848848function _thickbox_path_admin_subfolder() {
    849849        ?>
    850 <script type="text/javascript">
     850<script>
    851851var tb_pathToImage = "<?php echo esc_js( includes_url( 'js/thickbox/loadingAnimation.gif', 'relative' ) ); ?>";
    852852</script>
    … …  
    10111011function network_settings_add_js() {
    10121012        ?>
    1013 <script type="text/javascript">
     1013<script>
    10141014jQuery( function($) {
    10151015        var languageSelect = $( '#WPLANG' );
Note: See TracChangeset for help on using the changeset viewer.