I am using XHTML 1.0 Strict document type. After module installation, I got 3 errors as follows:

1>
Line 119, Column 91: there is no attribute "href"
1em 1em;float:right" >

2>
Line 119, Column 157: there is no attribute "count"
….com/content/xyz-node" count="false" >

3>
Line 119, Column 165: element "g:plusone" undefined
….com/content/xyz" count="false" >

Please help me.
Thanks
Tejas Mehta

Comments

corbacho’s picture

Status: Active » Fixed

In the setttings of the module, there is a option to select the syntax of the button.

HTML5 or g:plusone

Choose the HTML5 syntax and tell us if passed it or not.

zeroagain’s picture

Status: Fixed » Active

Invalid markup even after changing tag syntax to HTML5, please fix it.

corbacho’s picture

Status: Active » Closed (won't fix)

Sorry guys but it's Google's decision of doing it like this. I will mark this as won't fix because this module's goal is to provide the Google +1 button service as it is.

Think that the HTML5 button syntax pass the W3C's HTML5 validation, if that makes you feel better.

If for some reason, you are forced to pass the XHTML validation, have a look to this question in Stackoverflow:
http://stackoverflow.com/questions/6217434/google-1-button-not-w3c-compl...

They offer dirty tricks to pass the validation, but they are unofficial and you can understand that I will not support them in the module.

You can change the HTML of this module by override its theming function:

Copy paste theme_google_plusone_button function in your template.tpl.php, rename it to MYTHEME_google_plusone_button and change it to your needs.