- From: Paul Ebermann <Paul-Ebermann@gmx.de>
- Date: Sat, 3 Aug 2002 00:53:30 +0200
- To: www-validator@w3.org
Hello,
I just produced an XHTML document
following the compatibility guidelines
in appendix C of the recommendation
(http://www.w3.org/TR/xhtml1/#guidelines):
---
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>W3C Validator Bug</title>
</head>
<body>
<h1>W3C Validator Bug</h1>
</body>
</html>
---
This is (IMHO correctly) validated by the
validator.
Because I followed http://www.w3.org/TR/xhtml1/#C_2
in using <meta ... /> instead of <meta .../>, I
thought having valid HTML 4.01.
But when I try to validate it as HTML 4.01
---
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>W3C Validator Bug</title>
</head>
<body>
<h1>W3C Validator Bug</h1>
</body>
</html>
---,
I get an validator error:
---
Below are the results of attempting to parse this document with an SGML parser.
Line 5, column 50:
... Content-Type" content="text/html; charset=UTF-8" />
^
Error: text is not allowed here; try wrapping the text in a more descriptive container
---
Is this an error in the validator,
an error in the appendix C.2 of the spec,
or an error in my understanding of C.2?
Thanks
Paul
Received on Friday, 2 August 2002 19:30:43 UTC