Skip to:
Content

bbPress.org

Changeset 7390


Ignore:
Timestamp:
12/29/2025 05:30:57 PM (3 months ago)
Author:
johnjamesjacoby
Message:

Common - Code Improvement: remove HTML4 type attribute on <script> tag.

This changes bbp_swap_no_js_body_class() so the script tag it outputs no longer includes a type="text/javascript" attribute.

See #wp59883.

In trunk, for 2.7.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/common/template.php

    r7380 r7390  
    11141114    ?>
    11151115
    1116 <script type="text/javascript" id="bbp-swap-no-js-body-class">
     1116<script id="bbp-swap-no-js-body-class">
    11171117    document.body.className = document.body.className.replace( 'bbp-no-js', 'bbp-js' );
    11181118</script>
Note: See TracChangeset for help on using the changeset viewer.