Advanced SEO
Advanced SEO

Reputation: 387

G plus share button not W3C valid

How to make this part of HTML valid HTML5?

<div class="addthis_toolbox addthis_default_style addthis_32x32_style">
<a class="addthis_button_google_plusone" g:plusone:annotation="none"></a>
.
.
</div>
<script type="text/javascript" src="http://s7.addthis.com/js/300
/addthis_widget.js#pubid=ra-xxxxx"></script>

The result of the W3C-validator is this:

Warning Line xx, Column xx: Attribute g:plusone:annotation is not serializable as XML 1.0.

Error Line xx, Column xx: Attribute g:plusone:annotation not allowed on element a at this point.

<a class="addthis_button_google_plusone" g:plusone:annotation="none"></a>

Thanks,

Upvotes: 2

Views: 214

Answers (3)

abraham
abraham

Reputation: 47913

That's actually part of the AddThis API. You will have to contact them and ask them to W3C compatible.

Upvotes: 0

pcs
pcs

Reputation: 1854

Try like this,

 <div class="g-plusone" data-size="tall" data-count="true">
    ....
    </div>

Upvotes: 4

Stephan Weinhold
Stephan Weinhold

Reputation: 1643

If you are working with HTML5 you can use this alternative from the Google-documentation:

<div class="g-plusone" data-size="standard" data-count="true"></div>

Upvotes: 3

Related Questions