Skip to content Skip to sidebar Skip to footer

Syntaxerror: Invalid Character '\u0008' Message From The Doctype Tag

I am setting up a server and am getting a strange error I have never seen before: It is complaining about line 1 in the source, but that is just the DOCTYPE tag!

Solution 1:

The actual cause of the error is not located at line 1. For example, using eval also causes errors to be reported at line 1.

Look in your source code for the BACKSPACE U+0008 character. A method to spot this invisible character is described here.

Solution 2:

What happens if you add an comment on line1?

<!--empty line for the fun of it--><!DOCTYPE HTML>

Post a Comment for "Syntaxerror: Invalid Character '\u0008' Message From The Doctype Tag"