I am trying to validate my page and I use addthis.
I load the code async and I initialize it with jQuery after the dom is ready.
function initAddThis(){
var addthis_config = {ui_use_css : false}
addthis.init();
}
jQuery(document).ready(function($){
initAddThis();
});
Now the validator says:
Attribute g:plusone:size not allowed on element a at this point
Here is the html part with problems:
<a class="addthis_button_google_plusone google_plusone" g:plusone:size="medium"></a>
Now, is there a way to add the appropriate attributes (g:plusone:size=”medium”) to the tag after the HTML is downloaded? How can I do this?
Ty
http://webdesign.about.com/od/xmlnamespaces/a/xml_namespaces.htm
http://www.w3.org/TR/xhtml1/#normative