如何使这部分HTML有效的HTML5?G加分享按钮不是W3C有效
<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>
的W3C-验证的结果是这样的:
警告线XX,XX柱:属性克:Plusone精选:注释是不可序列作为XML 1.0。
错误线XX,XX柱:属性克:Plusone精选:注释在这一点上不允许元件。
<a class="addthis_button_google_plusone" g:plusone:annotation="none"></a>
感谢,
您关注[文档](https://developers.google.com/+/web/share/),该文档使用标准HTML 5'data- *'属性而不是expando-attributes。 – Quentin
请参阅此链接http://stackoverflow.com/questions/9139019/google-1-code-validation-error-missing-attribute – pcs
@saina:请阅读[应'嗨','谢谢',标语和解决方案被删除从帖子?](https://meta.stackexchange.com/questions/2950/should-hi-thanks-taglines-and-salutations-be-removed-from-posts),因为我注意到你有*添加*它发布。 – usr2564301