Friday 28 May 2010

AddThis validation issue

The AddThis button is a great addition to any website, however if your site needs to conform to W3C standards you may need to tweak the default HTML snippet that is provided, the issue is the use of the # in one of the JavaScript references:


<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=blahblah">
</script>


Simply change the # to a ? and you should be validating fine:


<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js?username=blahblah"></script>

No comments: