【问题标题】:Why won't my Google Plus javascript validate? [duplicate]为什么我的 Google Plus javascript 无法验证? [复制]
【发布时间】:2012-02-04 01:28:01
【问题描述】:

可能重复:
Google +1 Button not W3C compliant

我的 google plus javascript 未通过 w3c 验证。你能告诉我为什么吗?

这是错误信息:

Line 53, Column 407: Element name g:plusone cannot be represented as XML 1.0.

…hgoogle.png" alt="Logo"></a><g:plusone></g:plusone><a href="https://www.facebo…

✉
Error Line 53, Column 407: Element g:plusone not allowed as child of element div in this context. (Suppressing further errors from this subtree.)

…hgoogle.png" alt="Logo"></a><g:plusone></g:plusone><a href="https://www.facebo…

【问题讨论】:

  • 什么JavaScript?这不是html验证失败吗?
  • 它不会验证,因为 Google 为您提供了无效代码。

标签: javascript html xml validation


【解决方案1】:

我的也有类似的问题,如果您使用的是 HTML5,它将无法验证,除非您使用 HTML5 特定的代码,不幸的是我现在无法及时给您我的代码 sn-p 但是在这里

https://developers.google.com/+/plugins/+1button/

就在字幕+1标签下面

【讨论】:

    猜你喜欢
    • 2015-10-12
    • 2010-10-03
    • 1970-01-01
    • 2020-10-29
    • 1970-01-01
    • 1970-01-01
    • 2022-01-15
    • 2021-08-01
    • 1970-01-01
    相关资源
    最近更新 更多