[wp-trac] [WordPress Trac] #64428: Stop sending SCRIPT and STYLE type attribute for default values.

WordPress Trac noreply at wordpress.org
Mon Jan 5 16:02:20 UTC 2026


#64428: Stop sending SCRIPT and STYLE type attribute for default values.
----------------------------------+-------------------------
 Reporter:  dmsnell               |       Owner:  jonsurrell
     Type:  enhancement           |      Status:  closed
 Priority:  normal                |   Milestone:  7.0
Component:  Script Loader         |     Version:
 Severity:  normal                |  Resolution:  fixed
 Keywords:  has-patch needs-docs  |     Focuses:
----------------------------------+-------------------------
Changes (by jonsurrell):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"61440" 61440]:
 {{{
 #!CommitTicketReference repository="" revision="61440"
 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.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64428#comment:20>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list