• Resolved Jeffinho2016

    (@jeffinho2016)


    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)
  • Thanks @jeffinho2016 for the information and sorry for the late reply. We will provide an updated version soon.

    Hi @jeffinho2016,

    Sorry for the late reply. We just released WP Ajaxify Comments 1.7.4, which renders the <script> tags HTML5 compliant if the script supports HTML5 (via the mentioned add_theme_support() function).

    Best regards
    Jan

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘W3C validator’ is closed to new replies.