2013-04-28 80 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