标头中 xhtml 文档类型的语法错误
Firebug 报告以下语法错误:
<!DOCTYPE html PUBLIC "-//W3C XHTML 1.0 Transitional//EN" "DTD/xhtml1- transitional.dtd">
我不明白为什么,因为它在过去 2 个月中运行良好!
Firebug is reporting a syntax error for the following:
<!DOCTYPE html PUBLIC "-//W3C XHTML 1.0 Transitional//EN" "DTD/xhtml1- transitional.dtd">
I don't understand why since it has worked fine for the past 2 months!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您正在尝试将 HTML 文档加载为 JavaScript,因为您正在获取 404 文档,或者因为您忘记添加 URI,从而创建了一个返回到当前文档的相对 URI (
当解释为 JS 时,Doctype 是语法错误。
You are trying to load an HTML document as JavaScript, either because you are sourcing a 404 document or because you've forgotten to add the URI and thus created a relative URI back to the current document (
<script src=""></script>
).When interpreted as JS, the Doctype is a syntax error.