W3C Doctype错误?

时间:2013-04-28 15:07:55

标签: xhtml

我的网站使用的DTD是正确的。

<!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。

1 个答案:

答案 0 :(得分:3)

您已在(自动检测) XHTML + RFDa 的标记验证服务的UI中更改了“文档类型”首选项。

这会导致验证程序注释掉现有的Doctype并插入您选择的Doctype。它不会首先检查现有Doctype是否与您选择的Doctype相同。

要删除警告,请将首选项放回(自动检测)

Screenshot