Syntax error for xhtml doctype in title

Firebug reports a syntax error for the following:

<!DOCTYPE html PUBLIC "-//W3C XHTML 1.0 Transitional//EN" "DTD/xhtml1- transitional.dtd"> 

I don’t understand why, because it worked perfectly for the last two months!

+7
source share
1 answer

You are trying to load an HTML document as JavaScript, either because you are using a 404 document, or because you forgot to add a URI and thus create a relative URI for the current document ( <script src=""></script> ).

When interpreted as JS, Doctype is a syntax error.

+11
source

All Articles