http://stackoverflow.com/questions/7714896/firebug-returns-syntax-error-in-doctype
SyntaxError: syntax error
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
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.
================
syntax error [Break on this error] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML…3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
September 6, 2008This totally ambiguous error is a pretty simple fix but surprisingly, not many people have said anythingabout it.
The error comes from Firebug.
The break on this error isn’t a part of the error but it is in the firebug copy dump.
syntax error [Break on this error] <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML…3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>
For instance, you won’t find this code while working with javascript since it’s not javascript related.
It’s not CSS related.
It definitely has nothing to do with the server side parts of the application.
What else could it be? How about ordinary html?
The way I encountered this error was that I forgot to specify a src attribute value for my script tag!
<
script
type
=
"text/javascript"
src
=
""
></
script
>
If your script tag has a strict xhtml doc type and you forget to specify a tag’s src value, it’ll yell at you.
The solution is that you must specifiy a value for all attributes.
'SugarCRM > ERROR' 카테고리의 다른 글
Conversion of … from Y-m-d h:ia to Y-m-d failed (0) | 2013.10.16 |
---|