Saturday, April 20, 2013

HTML DOCTYPE Syntax error


This totally ambiguous error is a pretty simple fix but surprisingly, not many people have said anything about 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]

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>

No comments:

Post a Comment