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

Re: XHTML vs. <meta>-only encoding declarations

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Sat, 05 Jul 2003 01:04:05 +0200
To: Terje Bless <link@pobox.com>
Cc: W3C Validator <www-validator@w3.org>
Message-ID: <3f4a0478.288462126@smtp.bjoern.hoehrmann.de>

* Terje Bless wrote:
>>>Given the Content-Type of text/html, I would say the CSS Validator is
>>>in error here and should be amended to either pay attention to the
>>><meta> value or use the HTTP defaulting rules (depending on what your
>>>position on the HTTP vs. HTML vs. MIME defaulting rules is).
>>>
>>>Granted XML rules suggest UTF-8 or -16 for this case, but as it's
>>>served as text/html -- e.g. Appendix C rules -- these do not, IMO,
>>>apply.
>>
>>But the MarkUp Validator honors the XML declaration in such documents...
>
>So it does, but I'm inclined to consider this a bug where text/html documents
>are concerned. And note that it only considers an explicitly given encoding
>from the XML Declaration and does not apply XML defaulting rules here.

That's inconsistent as it is inconsistent to honor both, the meta
element and the XML declaration, they are mutually exclusive. XHTML user
agents must ignore the meta element and HTML user agents must ignore the
XML declaration, the Validator conforms thus to neither of the
specifications. The MarkUp Validator even honors the XML declaration for
text/html delivered *HTML* documents, see

  http://validator.w3.org/check?uri=http://www.bjoernsworld.de/temp/wrong-encoding.html

... Maybe I should bring this issue up to the HTML WG?
Received on Friday, 4 July 2003 19:04:25 GMT

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