Reputation: 387
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
Reputation: 47913
That's actually part of the AddThis API. You will have to contact them and ask them to W3C compatible.
Upvotes: 0
Reputation: 1854
Try like this,
<div class="g-plusone" data-size="tall" data-count="true">
....
</div>
Upvotes: 4
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