syntax error for xhtml doctype in header
Asked Answered
H

1

7

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!

Herbherbaceous answered 12/11, 2011 at 21:51 Comment(1)
possible duplicate of firebug returns syntax error in doctype?Pirozzo
P
12

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.

Pirozzo answered 13/11, 2011 at 10:38 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.