Search code examples
cssfacebookiframew3cfacebook-like

Facebook LIKE button and W3C Validation Fails


http://developers.facebook.com/docs/reference/plugins/like

To include the popular a [Like] button from facebook, I must use the following code :

<iframe src="http://www.facebook.com/plugins/like.php?href=www.MyDomain.com&amp;layout=standard&amp;show_faces=false&amp;width=225&amp;action=like&amp;font=lucida+grande&amp;colorscheme=dark&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:250px; height:80px;" allowTransparency="true"></iframe>

My website no longer validate on W3C because of the allowTransparency attribute :

Line 313, Column 342: there is no attribute "allowTransparency"
… overflow:hidden; width:250px; height:80px;" allowTransparency="true"></iframe>

Is there a way around? I cannot use the XFBML version. This is pretty bad..

Marketing et Conception Web Sherbrooke


Solution

  • Have you tried omitting this attribute? It should not be required. The standards to not even mention it.