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

Re: HTML Validator HTTP Accept

From: Aristotelis Mikropoulos <amikrop@gmail.com>
Date: Thu, 11 Dec 2008 00:28:50 +0200
Message-ID: <47ceec760812101428u79c79792if5bc30efb68287cf@mail.gmail.com>
To: www-validator@w3.org
It is not necessary, but many websites check it the client can accept the
"application/xhtml+xml"
MIME Type, and then and only then, serve the page as XHTML 1.1, or send the
same MIME Type
as content type. If the client tells the server that it does not accept this
MIME Type, then the
page is served as XHTML 1.0 Strict, and with "text/html" as a content type.

On Wed, Dec 10, 2008 at 7:35 PM, Andreas Prilop <
andreasprilopwww@trashmail.net> wrote:

> On Wed, 10 Dec 2008, Aristotelis Mikropoulos wrote:
>
> > the Validator should sent an "HTTP Accept" header to the server that
> > hosts the webpage, which header will contain the "application/xhtml+xml"
> > MIME Type, in order to let the server know that it also accepts
> > such a content type. Such a thing, would make the life of many web
> > developers who use XHTML 1.1, easier, as this HTML dialect can only
> > be served with the MIME Type mentioned above.
>
> I do not agree as I do not have any problem validating these three URLs
> with current version 0.8.4 of the validator:
>  http://www.unics.uni-hannover.de/nhtcapri/ruby-annotation.x.html
>  http://www.unics.uni-hannover.de/nhtcapri/ruby-annotation.xhtml
>  http://www.unics.uni-hannover.de/nhtcapri/ruby-annotation.var
>
> Note that these three URLs point to one and the same document.
>
> It is not necessary for the validator to send an Accept or Accept-Charset
> or Accept-Language HTTP header.
>



-- 
Programs must be written for people to read, and only incidentally for
machines to execute.
Received on Wednesday, 10 December 2008 22:29:25 GMT

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