firebug 在 doctype 中返回语法错误?
为什么 Firebug 在我的文档类型中返回错误?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
错误
syntax error
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
源代码
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
.....
Why does Firebug return an error in my doctype?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
error
syntax error
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
source code
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
.....
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这通常是因为您将 HTML 文档作为脚本加载而发生的。这通常是由
(即指向当前 HTML 文档的相对 URI)或指向 404 的脚本之一引起的错误。
This usually happens because you are loading an HTML document as a script. This is often caused by
<script src=""></script>
(i.e. a relative URI pointing at the current, HTML, document)) or one of the scripts pointing to a 404 error.DOCTYPE 通常用一行表示,如下所示。并可能导致语法错误
,但即使有时,当没有为元素声明 src 属性时,它也会大喊语法错误。当未找到源或在一页上调用两次时,Firebug 也会出现此错误。例如:脚本/图像/链接。
DOCTYPE normally is expressed on one line like below. and can cause syntax error
But even sometimes it will yell about a syntax error when a src attribute is not declared for an element. Firebug can also through this error when a source is not found or is called twice on one page. EX: script/image/link.