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/user-edit.php

    r60977 r61440  
    968968}
    969969?>
    970 <script type="text/javascript">
     970<script>
    971971        if (window.location.hash == '#password') {
    972972                document.getElementById('pass1').focus();
    … …  
    974974</script>
    975975
    976 <script type="text/javascript">
     976<script>
    977977        jQuery( function( $ ) {
    978978                var languageSelect = $( '#locale' );
Note: See TracChangeset for help on using the changeset viewer.