Element script must not have attribute charset unless attribute src is also spec
-
Hi WP forum,
I’ve this problem when i try to validate my theme on w3c validator.
Element script must not have attribute charset unless attribute src is also specified.
This problem is cause by “share-this” plugin that declare for the second time a charset. Like this:
<script charset=”utf-8″ type=”text/javascript”>var switchTo5x=false;</script><script charset=”utf-8″ type=”text/javascript” src=”https://w.sharethis.com/button/buttons.js”></script><script type=”text/javascript”>stLight.options({publisher:’wp.d5e12faa-7f34-41f5-92ec-eb7c1f8d54d7′});var st_type=’wordpress3.3.1′;</script>
When i already declared a charset just belove the <head>.
Can you help me to solve this problem of validation ?
Thanks !
- The topic ‘Element script must not have attribute charset unless attribute src is also spec’ is closed to new replies.