由于添加了使用 Olark 的代码:http://www.olark.com/

我收到验证错误

<script data-cfasync="false" type='text/javascript'>/*<![CDATA[*/window.olark||…
✉
You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

文档类型是过渡性的。我如何解决这个问题?

它在代码中也有一个抛出以下错误:
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").

最佳答案

这里来自奥拉克的苏尼尔。您可以为您的网站删除该属性。它用于管理与 Cloudflare 的交互。如果您不使用 Cloudflare,则不需要。

http://blog.cloudflare.com/combining-javascript-css-a-better-way

关于wordpress - 没有属性 "data-cfasync"(Olark) WP,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/16145009/

10-12 05:23