[wp-trac] [WordPress Trac] #29893: Scripts output syntax enhancement for HTML5
WordPress Trac
noreply at wordpress.org
Wed Oct 8 16:42:56 UTC 2014
#29893: Scripts output syntax enhancement for HTML5
-------------------------+-----------------------------
Reporter: poxtron | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 4.0
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
Hi there, I was wondering why enqueued scripts have the 'text/javascript'
type when its no longer necesary in HTML5.
Found the exact part on the code that needs to change, making a filter or
using an action is not posible, is on
{{{
wp-includes/class.wp-scripts.php line 142 and 144
}}}
the only thing thats needs to be done there is remove
type='text/javascript' and that's it.
Will not affect existing sites, but it will make the code look more
poetic. ;)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29893>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list