[wp-trac] [WordPress Trac] #42804: type is not required in HTML5

WordPress Trac noreply at wordpress.org
Wed Sep 18 14:49:41 UTC 2019


#42804: type is not required in HTML5
-------------------------------------------------+-------------------------
 Reporter:  sasiddiqui                           |       Owner:
                                                 |  SergeyBiryukov
     Type:  enhancement                          |      Status:  reviewing
 Priority:  low                                  |   Milestone:  5.3
Component:  Script Loader                        |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  needs-testing has-patch needs-dev-   |     Focuses:
  note                                           |
-------------------------------------------------+-------------------------

Comment (by SergeyBiryukov):

 In [changeset:"46164" 46164]:
 {{{
 #!CommitTicketReference repository="" revision="46164"
 Script Loader: Introduce HTML5 support for scripts and styles.

 When a theme declares HTML5 support for script and styles via
 `add_theme_support( 'html5', array( 'script', 'style' ) )`, the
 `type="text/javascript"` and `type="text/css"` attributes are omitted.

 These attributes are unnecessary in HTML5 and cause warnings in the W3C
 Markup Validation Service.

 Props sasiddiqui, swissspidy, knutsp, SergeyBiryukov.
 See #42804.
 }}}

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


More information about the wp-trac mailing list