W3C validator
-
WP Ajaxify Comments output html does not pass the W3C validator.
Reason: Please change <script type=”text/javascript”> into <script>
This happens even if we have enabled html5 support for <script> and <style> tags.
Culprit: the script that contains the localized js data and starts with if (!window[“WPAC”]) var WPAC = {};WPAC._Options =.
While the JavaScript MIME type doesn’t do much harm, it is redundant and only useful for IE8 and below (12-years old browser).
Maybe you could check if the user has enabled html5 support through “add_theme_support( ‘html5’, array( ‘script’, ‘style’ ) );” and prevent the “type=’text/javascript'” from outputing?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘W3C validator’ is closed to new replies.