【发布时间】:2011-09-14 04:50:38
【问题描述】:
我的网页上有这个 DOCTYPE 声明,它在 Internet Explorer 8 和以前的版本中导致错误。我以前使用过此 DOCTYPE,并且在 Internet Explorer 中加载页面时没有出现错误。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
此页面在所有其他浏览器中都可以正常工作。这是我从 IE8 和更早版本收到的错误。
The XML page cannot be displayed.
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button.
Unspecified error Error processing resource 'http://www.w3.org/TR/html4/strict.dtd'.
任何帮助将不胜感激。
【问题讨论】:
-
您能以某种方式发送带有错误 MIME 类型的页面吗?
标签: html xml internet-explorer internet-explorer-8 doctype