WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: trying to get a page to validate to AAA


From: Peter Krantz
Date: Jul 15, 2010 8:03AM

On Thursday, July 15, 2010, Sandy wrote:

> is giving me the warning
> W608 - 1 instance(s): XHTML should be served with a content type of
> 'application/xhtml+xml'.

You are using XHTML 1.1 which must be served by the server as

Your page is served as text/html when I request it via
http://web-sniffer.net/ thus, an error. This has no impact on
accessibility though.

The server sends out information about the content type in the http
headers before the start of the document. This does not happen when
you test a document locally loaded from a disk.

There are no advantages of using the XHTML 1.1 doctype. Only
disadvantages. Can you switch to HTML 4.01 or HTML 5 instead?


Peter Krantz