[wp-trac] [WordPress Trac] #42977: Remove type attribute from JavaScript resources

WordPress Trac noreply at wordpress.org
Mon Dec 25 13:46:11 UTC 2017


#42977: Remove type attribute from JavaScript resources
-------------------------+-----------------------------
 Reporter:  webliberty   |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:  4.9.1
 Severity:  normal       |   Keywords:
  Focuses:  javascript   |
-------------------------+-----------------------------
 Function wp_enqueue_script adds type attribute for JavaScript resources.

 But, [https://validator.w3.org/nu/ W3C Markup Validator Service] issues a
 warning:

 > The type attribute is unnecessary for JavaScript resources

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42977>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list