Ran across this error in firebug after changing around the directory structure of one of our client's landing pages.
It's a very poorly worded and generic error message.
Obviously the doctype doesn't have a syntax error..
So what does it mean?
Some of the Javascript files on the page had invalid SRC urls.
Check the URLs to your JS files on the page and the error will disappear.