• Resolved Oliver

    (@oliverraduner)


    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:

    <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' />

    …for minified CSS

    The type attribute is unnecessary for JavaScript resources

    <script type='text/javascript' src='.../wpo-minify/1683058843/assets/wpo-minify-header-jquery3.4.0.min.js' id='wpo_min-header-1-js'>

    …for minified JS-files

    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]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support vupdraft

    (@vupdraft)

    I have asked our lead developer to look at this.

    Plugin Contributor Venkat Raj

    (@webulous)

    @oliverraduner I was able to reproduce the first issue. But we don’t add text/javascript to minified assets. I agree with double quotes.

    I’ve added this to our to do list and look into this. Thanks for pointing out.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Improve HTML5 valid markup generated by WP-Optimize’ is closed to new replies.