Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

syntax error for xhtml doctype in header

Firebug is reporting a syntax error for the following:

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

I don't understand why since it has worked fine for the past 2 months!

like image 203
Sweepster Avatar asked Nov 12 '11 21:11

Sweepster


1 Answers

You are trying to load an HTML document as JavaScript, either because you are sourcing a 404 document or because you've forgotten to add the URI and thus created a relative URI back to the current document (<script src=""></script>).

When interpreted as JS, the Doctype is a syntax error.

like image 148
Quentin Avatar answered Sep 19 '22 15:09

Quentin