Title: W3C Issue
Last modified: August 21, 2016

---

# W3C Issue

 *  [MMDeveloper](https://wordpress.org/support/users/mmdeveloper/)
 * (@mmdeveloper)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/w3c-issue-1/)
 * Basically after using “HTML Tidy/HTML Validator” a Firefox Mozilla plugin, I 
   noticed that there is a small issue. Apparently you must use src attribute when
   using the charset attribute on a script tag. Since your not using the src attrbute
   can you please remove the charset attribute.
 * So:
 * $widget =”<script charset=\”utf-8\” type=\”text/javascript\”>var switchTo5x=true;
   </script>”;
 * should be:
 * $widget =”<script type=\”text/javascript\”>var switchTo5x=true;</script>”;
 * [http://wordpress.org/plugins/share-this/](http://wordpress.org/plugins/share-this/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [sharethissupport](https://wordpress.org/support/users/sharethissupport/)
 * (@sharethissupport)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/w3c-issue-1/#post-4181936)
 * Hello User,
 * Can you please provide more details about the issue you are facing so that we
   can further diagnose the issue and if required we will forward it to our teach
   team?
 *  Thread Starter [MMDeveloper](https://wordpress.org/support/users/mmdeveloper/)
 * (@mmdeveloper)
 * [12 years, 9 months ago](https://wordpress.org/support/topic/w3c-issue-1/#post-4181937)
 * Thanks for getting back to me.
 * I’ve not experienced any major issues with the plugin, it works very well.
 * I am teaching myself how to be a better web developer and try to be as semantic
   and close to W3C standard as possible. Basically the W3C analyser said that you
   need to remove charset attribute. It doesn’t cause a break or a fault which is
   probably why you guys don’t know about this, but I think the W3C only want you
   to use charset when referencing a javascript library rather then inline javascript.
 * So in summary, I have not experienced a disaster or a bug, just simply letting
   you know that the W3C doesn’t like your charset attribute on the line mentioned
   above. I think this was the only issue with one of my sites, but won’t cause 
   me any damage though.
 *  [sharethissupport](https://wordpress.org/support/users/sharethissupport/)
 * (@sharethissupport)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/w3c-issue-1/#post-4181974)
 * Hello,
 * Thanks for the suggestion. We will keep this in our to do list to implement in
   future versions of Plugin.
 *  [LukaHoward](https://wordpress.org/support/users/lukahoward/)
 * (@lukahoward)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/w3c-issue-1/#post-4182024)
 * I have this plugin passing W3C Validation after a small change.
    If you go into
   your WordPress SQL Database, and go to the WP_Options table, in there you will
   find st_widget. This contains the information for the 3 JavaScript files you 
   will need for this plugin. I removed the ‘charset=”utf-8″ from the first and 
   last scripts. I found the plugin ran successfully on my site, and the site now
   passes W3C validation.
 *  [sharethissupport](https://wordpress.org/support/users/sharethissupport/)
 * (@sharethissupport)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/w3c-issue-1/#post-4182031)
 * @ LukaHoward
    Thank you for the suggestion!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘W3C Issue’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/share-this_b9babb.svg)
 * [ShareThis: Free Sharing Buttons and Tools](https://wordpress.org/plugins/share-this/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/share-this/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/share-this/)
 * [Active Topics](https://wordpress.org/support/plugin/share-this/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/share-this/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/share-this/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [sharethissupport](https://wordpress.org/support/users/sharethissupport/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/w3c-issue-1/#post-4182031)
 * Status: not resolved