Re: problem with validator

scripsit Lee A. Jones:
 
> I have a web page with the W3C validation graphic on it, and a link to the
> W3C validator page.
> 
> When it tries to validate the page
> (http://fly.aeropork.com/archid/content/ethos.html) it tells me that the
> page does not validate if it detects automatically, the character set and
> doc type.

The validator output [1] gives only the following errors:
] Error: illegal character number 0
and
] Error: text is not allowed here; try wrapping the text in a more
] descriptive container

The first refers to a stray null character (&#0;) after the </HTML>.
The null character isn't apparently allowed in SGML.  The second is
because that character occurs after </HTML>, where no character data are
allowed.

> yet when I replace the 'detect' with the character and doctype already used
> in the document, it validates with no errors!

I cannot reproduce this result.

However, I edited the source, removing the stray null, and posted it on
a public server [2].  Validating that edited markup, I get no errors
[3].


References

1. <http://validator.w3.org/check?uri=http%3A%2F%2Ffly.aeropork.com%2Farchid%2Fcontent%2Fethos.html&charset=iso-8859-1+%28Western+Europe%29&doctype=%28detect+automatically%29>

2. <http://www.public.asu.edu/~tkinias/ethos.html>

3. <http://validator.w3.org/check?uri=http%3A%2F%2Fwww.public.asu.edu%2F%7Etkinias%2Fethos.html&charset=%28detect+automatically%29&doctype=Inline>

-- 
Thanasis Kinias
Web Developer, Information Technology
Graduate Student, Department of History
Arizona State University
Tempe, Arizona, U.S.A.

Ash nazg durbatulūk, ash nazg gimbatul,
Ash nazg thrakatulūk agh burzum-ishi krimpatul

Received on Thursday, 8 August 2002 11:53:30 UTC