15 responses to “syntax error [Break on this error] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML…3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">”

  1. David

    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.

  2. AlekzZz

    Thanx a lot man… i was trying to catch this error on a 2500 lines long form… it was crazy.

  3. Scott Hoff

    I agree! This really helped me a lot. Thanks for the post.

  4. Lars

    Thank you! This is really a dodgy error!

    The cause here was, that i referenced a file via src twice in a document!

  5. Marc St-Jacques

    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.

  6. Mike Gioia

    Thanks so much, this was driving me nuts!

  7. Andy

    Thank you so much, this really help
    i never thought that empty ‘src’ was the root of this mess :)

  8. dude

    This error appear also when your src=”" points to not existing javascript.

  9. Yves

    Thanks a lot for helping!
    I thought it was a firebug bug :-)

  10. Deter

    Many thanks for this!

  11. fatjames

    thank you.Favorite it.

  12. Aruna

    Thank you man. I had been trying to figure out this issue for couple of months.

  13. Damen

    even if you have a valid js document that is 301 0r 302 0r 200 http status, but 0 content length, you will get this error., use firebug to check for 0 length js net requests.

  14. Joseph McCullough

    Thanks, I was a bit confused, haha.

  15. Shauli Antar

    Thanks on that !!
    Almost broke the screen for this error ;)

Leave a Reply