Improve HTML5 valid markup generated by WP-Optimize
-
The HTML markup generated / injected by WP-Optimize leads to quite some warnings & notices by the W3Validator, when checking the HTML5 Doctype compliance.
Trailing slash on void elements has no effect and interacts badly with unquoted attribute values:
…for minified CSS<link rel='stylesheet' id='wpo_min-header-2-css' href='.../wpo-minify/1683058843/assets/wpo-minify-header-css12.1.min.css' type='text/css' media='all' />
The type attribute is unnecessary for JavaScript resources
…for minified JS-files<script type='text/javascript' src='.../wpo-minify/1683058843/assets/wpo-minify-header-jquery3.4.0.min.js' id='wpo_min-header-1-js'>
Personally I have also the impression that double-quotes over single-quotes in these generated HTML-tags could be more consistent, but this seems to not have any impact on HTML5 compliant validation.
The page I need help with: [log in to see the link]
- The topic ‘Improve HTML5 valid markup generated by WP-Optimize’ is closed to new replies.