This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
The validate via upload reports errors that do not exist. It appears as if extra bogus characters are inserted in the header. Pasting the same content into the appropriate field validates fine. <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>Untitled</title> </head> <body> <p>Here is some text</p> <p><a onclick="window.open(this.href,'_blank');return false;" href="http://mosasaur.com">Some Other Site</a></p> </body> </html>
Created attachment 393 [details] this document fails validation, only when uploaded
Hello Lorin, your document (as attached) has a bogus (non-utf-8) character after encoding="utf-8"?> The validator is right to complain about it. The fact that the error does not appear in direct input is only thanks to the fact that the garbage character is not kept through copy-pasting (thanks to your OS, clipboad and/or browser). How to fix: just remove the first few lines until the end of the doctype, and copy-paste from a correct source.