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

Problem with your HTML validation service and XML

From: Morten M. Christensen <mmc@navigosystems.com>
Date: Wed, 21 Feb 2001 17:50:41 -0500 (EST)
Message-ID: <3A944678.1AC2B110@navigosystems.com>
To: www-validator@w3.org, gerald@w3.org
Dear Sirs,

I have enchanted a big problem with the HTML Validation Service, when
validating Transitional HTML documents that are well formed, like the
extract below. This is really annoying, since this makes it impossible
to have a proven valid Transitional HTML file which is also XML ready
(for later conversion to XHTML).... BTW: I can not use XHTML yet,
because your other XHTML validator will fail on some width, height
attributes that I am using to keep compatibility with old browsers.

Sincerely,
Morten Christensen,
AArhus, Denmark

-------

INPUT (notice the XML compliant end '/' of the meta tag.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en"><head>
<meta content="text/html;charset=iso-8859-1" http-equiv="content-Type"
/>
...

OUTPUT:
    Line 3, column 72:

       ... ml;charset=iso-8859-1" http-equiv="content-Type" />
                                                             ^

     Error: character data is not allowed here
Received on Monday, 26 February 2001 22:07:39 GMT

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