html - w3 validator says all entities are invalid after final validation is corrected -



html - w3 validator says all entities are invalid after final validation is corrected -

i going through corrections pages validate. got downwards 1 error left on page. after correcting error, next run of validator gave 29 errors, 1 each entity on page. illustration   considered invalid. here 1 of error messages:

line 67, column 12: entity 'nbsp' not defined.

<h1>&nbsp;<a href="search-by-keyword.php?usertype=pri">m ...

in add-on 1 other error following:

line 1, column 6: xml declaration allowed @ start of document

<?xml version="1.0" encoding="utf-8"?>

but declaration.

so test, reverted final error correction. after doing that, validator 1 time 1 time again says there 1 validation error in file.

as side note, did find posting on web 2007 seeming study same situation. see http://lists.w3.org/archives/public/www-validator/2007jul/0140.html

what's going on?

the solution issue remove leading space got in of tag, not allowed per specification. in particular, error message correct:

line 1, column 6: xml declaration allowed @ start of document

by "start of document" meant "1st character of document", , no leading white-space allowed.

this removed above error 28 other errors.

html validation html-entities

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -