25

我使用 W3C 验证器收到以下警告:

使用实验功能:HTML5 一致性检查器

它到底是什么意思?我不能指望这个验证器吗?

4

4 回答 4

31

The warning "Using experimental feature: HTML5 Conformance Checker." means that the validator is checking your markup as HTML5, but since the w3c hasn't agreed on every part of the HTML5 standard, you should take what the validator says with a grain of salt, because it is prone to change until the standard is complete. The warning does not mean that there is anything wrong with your code, but if you want to get rid of the warning, try validating with a Doctype of "HTML 4.01 Strict".

于 2010-10-21T17:58:32.607 回答
5

HTML5 is an unfinished draft so the validator is:

  • New and subject to more bugs than one that has been in production for years (since HTML5 has abandoned the SGML legacy of its predecessors--you can't just use a DTD based validator)
  • Comparing your document to a moving target (which might have fallen behind)
于 2010-10-21T18:01:32.873 回答
1

除了 Ronnie 所说的之外,我倾向于使用HTML5 Validator,它不会给你那种信息,但它当然也是实验性的,尽管我相信现阶段 HTML5 规范中的事情不太可能发生太大变化。

于 2010-10-21T16:32:59.493 回答
0

这意味着您的代码没有问题,但是文档在语义上可能正确也可能不正确。

查看这篇文章http://www.alistapart.com/articles/semanticsinhtml5/

于 2010-10-21T15:49:59.937 回答