W3C home > Mailing lists > Public > www-validator@w3.org > July 2001

Re: W3C HTML Validation Service Results are failing on good pages

From: Christian Smith <csmith@barebones.com>
Date: Sat, 7 Jul 2001 16:56:54 -0400
To: Jonathan Wilson <wilson@claborn.net>
cc: Tim Bagot <tsb-w3-validator-0004@earth.li>, www-validator@w3.org, carole@designs.com
Message-ID: <20010707165655-r01010700-79c2d29d-0910-0108@165.247.13.40>
On Saturday, July 7, 2001 at 08:39, carole@designs.com (Carole A. Gay) wrote:

> >Almost. The validator output attached to Jonathan Wilson's message
> >contains "Error: no document type declaration; will parse without
> >validation". Clearly, in the absence of a DTD, it is impossible to tell
> >which end tags are meant to be optional.
> 
> It also give the URL of the page validated. 

Ahh, I saw an HTML attachment but assumed this was just an html formatted
version of his email so I ignored it.

> I'm no expert, but when I went to that URL, in the source, the first
> lines of code say:
> 
> <?xml version = "1.0"?>
> <icx_pubyear>2001</icx_pubyear>
> <icx_headline>Moles</icx_headline>
> <icx_url>http://www.dermadoctor.com/pages/newsletter153.asp</icx_url>
> <icx_story>
> 
> After that, the whole document looks like HTML 4.0 Transitional, at best.

Well, that would explain it. You can't combine HTML and XML in this
fashion so the validator must be kicking (correctly) into XHTML mode and
this would explain the errors that are being reported.

Remove the XML declaration and add an HTML 4.0 doctype OR add an XHTML
doctype and fix the various errors which are reported.

-- 
Christian Smith  |  csmith@barebones.com  |  http://web.barebones.com

He who dies with the most friends... Is still dead!
Received on Saturday, 7 July 2001 16:56:57 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:13:59 GMT