W3C home > Mailing lists > Public > www-validator@w3.org > April 2008

Ignoring meta http-equiv for application/xhtml+xml

From: Nikita The Spider The Spider <nikitathespider@gmail.com>
Date: Sun, 6 Apr 2008 21:15:53 -0400
Message-ID: <35e76ac10804061815i536c0bf6p1c769969b13c48a6@mail.gmail.com>
To: "W3C Validator Community" <www-validator@w3.org>

Hi,
I'm trying to understand the validator's logic for ignoring the
http-equiv charset declaration in documents delivered as
application/xhtml+xml.

I get an encoding of UTF-8 when validating this file:
http://NikitaTheSpider.com/boneyard/temp/meta-test-xhtml-as-xml.xhtml

And ISO-8859-5 when validating this file:
http://NikitaTheSpider.com/boneyard/temp/meta-test-xhtml-as-html.html

They're the same except for the media type. The former is delivered as
application/xhtml+xml, the latter as text/html. In neither case is the
encoding declared in the HTTP header, but both files contain an XHTML
doctype and a META http-equiv statement that declares the encoding to
be ISO-8859-5.

Is this logic based on the last paragraph in section 3.3 here?
http://www.w3.org/TR/xhtml-media-types/#application-xml

Thanks

-- 
Philip
http://NikitaTheSpider.com/
Whole-site HTML validation, link checking and more
Received on Monday, 7 April 2008 01:16:32 GMT

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