[wp-trac] [WordPress Trac] #42804: type is not required in HTML5
WordPress Trac
noreply at wordpress.org
Tue Dec 5 11:04:34 UTC 2017
#42804: type is not required in HTML5
---------------------------+------------------------------
Reporter: sasiddiqui | Owner:
Type: enhancement | Status: new
Priority: low | Milestone: Awaiting Review
Component: Script Loader | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
---------------------------+------------------------------
Changes (by swissspidy):
* priority: normal => low
* version: trunk =>
* component: General => Script Loader
Comment:
Please have a look at https://make.wordpress.org/core/handbook/tutorials
/working-with-patches/ in order to create patch files that can be more
easily scanned. Uploading whole files is unfortunately not really helpful.
Also, just because `type` is not required anymore with HTML5, it doesn't
mean every website or teme is using HTML5. In HTML4 and other doc types,
the `type` attribute is required and will cause validation errors (not
just warnings as in your example).
Just removing `type` might not the best solution. Maybe we need to use
`add_theme_support` for this?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/42804#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list