This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
I am getting the following w3c error when checking my html document: Error Line 1, Column 1: end of document in prolog <?xml version='1.0' encoding='UTF-8'?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML … ✉ This error may appear when the validator receives an empty document. Please make sure that the document you are uploading is not empty, and report any discrepancy. The xml instructions comes from an include (inc) file: <?php echo "<?xml version='1.0' encoding='UTF-8'?>"; ?> as do the doctype declaration specifications: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> The beginning of the html documents contains the following text: <?php error_reporting(E_ALL); ?> <?php include("includes/xml_instr.inc"); ?> <?php include("includes/map_doc_type.inc"); ?> I have not changed the two include files for years, and have never seen this w3c error message. In fact, the same error is encountered now on html web pages generated several years ago, which never had the error. Has something changed recently in the w3c validator to cause this error? If not, what am I doing wrong?
I have had the same experience. Starting today, all my pages which used to validate correctly are now giving this error message: Error Line 1, Column 1: end of document in prolog <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> This error may appear when the validator receives an empty document. Please make sure that the document you are uploading is not empty, and report any discrepancy. The pages haven't changed, so the validator must have. A browser still displays the pages correctly, so I am certain they are not empty. - Rich
Problem is now fixed. Same html files that generated the error yesterday no longer do so. Thanks to whoever for the quick response.
I agree that it has been fixed. My same pages that gave this error now validate correctly.
It's BACK again. As of 2017-09-11 18:13 UTC, attempting to validate my page http://www.richpasco.org/ gives: Validation Output: 1 Error Error Line 1, Column 1: end of document in prolog <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> This error may appear when the validator receives an empty document. Please make sure that the document you are uploading is not empty, and report any discrepancy.