• Resolved Bonaldi

    (@bonaldi)


    Hi,

    Get this error with w3.org validator:

    Error: A script element with a src attribute must not have a type attribute whose value is anything other than the empty string, a JavaScript MIME type, or module.
    
    From line 114, column 13; to line 114, column 170
    
    </script> <script class="cmplz-script" type="text/plain" async defer src='https://www.google.com/recaptcha/api.js?onload=renderInvisibleReCaptcha&render=explicit'></script>

    Something to do ?
    Regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    Complianz blocks scripts from third parties by changing the “type” attribute from “text/javascript” to “text/plain”. Apparently the validator is confused by that. The src is still needed to activate it back. When a user consents to marketing cookies, the plugin changes the type back to text/javascript, then runs the scripts again.

    Thread Starter Bonaldi

    (@bonaldi)

    OK. Good to know.
    Thanks.

    Thread Starter Bonaldi

    (@bonaldi)

    For info, I get this warning too :

    The type attribute is unnecessary for JavaScript resources.
    
    From line 114, column 3579; to line 114, column 3642
    
    </script> <script type='text/javascript' class="cmplz-stats cmplz-native"></script>
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘W3.org script tag compliance’ is closed to new replies.