2013-04-28 98 views
2

我的網站使用這個DTD是正確的。W3C文檔類型錯誤?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd"> 
<html version="XHTML+RDFa 1.0" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb"> 

但我不斷收到W3C網站上的驗證錯誤?

DOCTYPE Override in effect! 

The detected DOCTYPE Declaration "<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML+RDFa 1.0//EN" "http://www.w3.org/MarkUp/DTD/xhtml-rdfa-1.dtd">" has been suppressed and the DOCTYPE for "XHTML + RDFa" inserted instead, but even if no errors are shown below the document will not be Valid until you update it to reflect this new DOCTYPE. 

對這裏發生了什麼以及如何解決這個問題有任何建議?

Thx。

回答

3

您已經從改變了「文件類型」的偏好在用於標記驗證服務的UI(自動檢測)XHTML + RFDa

這會導致驗證器註釋掉現有的文檔類型並插入您選擇的文檔。它不會首先檢查現有的文檔類型是否與您選擇的文檔類型相同。

要刪除的警告,把優惠回贈(自動檢測)

Screenshot

+0

網站W3C驗證是從知名的在線搜索引擎優化系統重新driect - 所以他們的鏈接顯然條出DTD並手動輸入,導致其失敗100%驗證。有趣的bug! – ubique 2013-04-29 11:37:44