【发布时间】:2012-04-07 10:41:04
【问题描述】:
我之前设计的网站没有问题,但现在我在 Firefox 11 中看到 DOCTYPE 行是红色的。验证没有问题。我将编码更改为没有 BOM 的 UTF-8,但问题仍然存在。
http://validator.w3.org/check?uri=genelvana.com
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
【问题讨论】:
-
firefox 10.02 说它有效。您是否使用任何可能导致无效的扩展程序?
-
和 firefox 11 也验证了该页面。这可能是由您的扩展程序之一引起的。
-
我删除了所有插件,重新安装了 firefox,卸载了卡巴斯基安全软件,但还是一样...
-
@HasanGürsoy 我也有同样的问题。这是我的测试文件:matthewpavkov.com/dev/temp/firefox-validation-issue.html 在 Firefox 11 中查看源代码时,
doctype显示为红色。 -
另见这篇相关的 Stack Overflow 文章:stackoverflow.com/questions/10775005/…
标签: validation firefox utf-8 doctype