[wp-trac] [WordPress Trac] #43111: W3C validation warnings: type attribute

WordPress Trac noreply at wordpress.org
Wed Jan 17 15:55:12 UTC 2018


#43111: W3C validation warnings: type attribute
---------------------------+------------------------
 Reporter:  ArtGoddess     |       Owner:
     Type:  defect (bug)   |      Status:  closed
 Priority:  normal         |   Milestone:
Component:  Script Loader  |     Version:  4.9.2
 Severity:  normal         |  Resolution:  duplicate
 Keywords:                 |     Focuses:
---------------------------+------------------------
Changes (by swissspidy):

 * status:  new => closed
 * resolution:   => duplicate
 * component:  General => Script Loader
 * milestone:  Awaiting Review =>


Comment:

 Hey there

 Thanks for your report and welcome to WordPress Trac! This issue has been
 reported multiple times and we're already tracking it in #42804. Please
 look for existing tickets before opening a new one :-)

 With that being said, there are different types of HTML standards and
 `type` is required in some of them. Omitting them will lead to validation
 errors. In your case there are only warnings because the `type` attribute
 is not required anymore with HTML 5, but it also doesn't cause any
 problems when it's there. So it's not that big of a big deal really.

 The latest patch on #42804 resolves this issue by allowing themes to omit
 the `type` attribute. The ticket is currently slated for the WordPress 5.0
 release.

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


More information about the wp-trac mailing list