Official Twitter follow button code does not pass validator

I ran my website through Validator and it returned two errors, both of which relating to the official Twitter follow button code.

The code for the larger button is:

<a href="" class="twitter-follow-button" data-show-count="false" data-size="large">Follow @gary</a>

<script type="text/javascript">!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);;js.src="//";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>

Validator returned these errors when checking my site as XHTML 1.0 Transitional:

there is no attribute "data-show-count"


there is no attribute "data-size"

So what is the deal here? Obviously these two attributes exists. Removing the data-size will return the smaller version of the button.


It should work with HTML5 Doctype.

Need Your Help

What does this context mean: (Monad m, (~) * a ())?


I've found the following class instance : (Monad m, (~) * a ()) =&gt; LaTeXC (LaTeXT m a), but can't quite understand its context.

Java String to JSON conversion

java json web-services

i am getting data from restful api in String variable now i want to convert to JSON object but i am having problem while conversion it throws exception .Here is my code :