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] <!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.
Possibly related posts:
This is not just if your javascript src is blank. It apparently occurs any time you link to a javascript file that does not exist.
Thanx a lot man… i was trying to catch this error on a 2500 lines long form… it was crazy.
I agree! This really helped me a lot. Thanks for the post.
Thank you! This is really a dodgy error!
The cause here was, that i referenced a file via src twice in a document!
Impressive. I was just starting with a bare-boned template when this error occurred. It drove me crazy.
This error also occurs on the WebDevelopper plugin and Transitionnal DTD.
Thanks.
Thanks so much, this was driving me nuts!
Thank you so much, this really help
i never thought that empty ’src’ was the root of this mess :)
This error appear also when your src=”" points to not existing javascript.
Thanks a lot for helping!
I thought it was a firebug bug :-)
Many thanks for this!