2013-04-22 55 views
4

由於添加的代碼使用Olark:http://www.olark.com/沒有屬性 「數據cfasync」(Olark)WP

我得到的

<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. 

驗證錯誤的DOCTYPE是過渡性的。我如何解決這個問題?

它也有一個在其中拋出了以下錯誤代碼:

從Olark這裏
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>"). 

回答

5

Sunir。您可以爲您的網站刪除該屬性。它用於管理與Cloudflare的交互。如果您不使用Cloudflare,則不需要。

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

+0

你指的是哪個屬性?看起來錯誤是由在腳本元素中使用'<!CDATA'造成的。 – 2014-07-18 20:14:30

+0

他的意思是「data-cfasync」屬性。 – 2015-04-15 10:15:03