Follow Button's IFRAME code does not pass HTML validation


#1

On this page:
https://dev.twitter.com/docs/follow-button#using-an-iframe

The documented example for adding an IFRAME Follow Button is:

<iframe allowtransparency="true" frameborder="0" scrolling="no"
  src="//platform.twitter.com/widgets/follow_button.html?screen_name=twitterapi"
  style="width:300px; height:20px;"></iframe>

However this code fails to validate:
http://validator.w3.org/check?uri=http%3A%2F%2Fdafoster.net%2Farticles%2F2010%2F09%2F17%2Fcomparing-writing-utensils%2F&charset=(detect+automatically)&doctype=Inline&group=0

Please provide a snippet that does not use the {allowtransparency, frameborder, scrolling} attributes on an IFRAME element. Or at least document that the snippet is known to fail validation.


#2

The frameborder and scrolling attributes are valid HTML4, and since we support browsers that do not provide HTML5 functionality we will continue to use those attributes. Additionally allowtransparency is supported by all major browsers. Additionally other things like target="_blank" on an anchor would not validate yet, almost the entire web uses it. Validation is a mere suggestion, we program software to work, not to validate.


#3