Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

firebug returns syntax error in doctype?

Tags:

html

firebug

Why does Firebug return an error in my doctype?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">  

error

syntax error <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"  

source code

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"   "http://www.w3.org/TR/html4/strict.dtd"> <html>     <head> ..... 
like image 856
clarkk Avatar asked Oct 10 '11 15:10

clarkk


1 Answers

This usually happens because you are loading an HTML document as a script. This is often caused by <script src=""></script> (i.e. a relative URI pointing at the current, HTML, document)) or one of the scripts pointing to a 404 error.

like image 97
Quentin Avatar answered Sep 23 '22 17:09

Quentin