Type attribute is unnecessary for JavaScript resources
-
Hi
The Akismet plugin adds the javascript using following code to the website source code:
<script async=”async” type=’text/javascript’ src=’https://www.example.com/wp-content/plugins/akismet/_inc/form.js?ver=4.0.3′></script>
If we run W3 validator, it shows following warning:
The type attribute is unnecessary for JavaScript resources.
So the correct code should be:
<script async src=’https://www.example.com/wp-content/plugins/akismet/_inc/form.js?ver=4.0.3′></script>
Can this be corrected in next version?
Thank you.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Type attribute is unnecessary for JavaScript resources’ is closed to new replies.