WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: trying to get a page to validate to AAA

for

From: Simius Puer
Date: Jul 14, 2010 2:09AM


Hi Sandy

99% positive that's an error (as in what you have is correct but the
validator is wrong). You are serving the right content content type and
charset for your code and it validates happily through the W3C own
validator. I don't think you are going to hit any problems there.

If you do hit issues then consider if the content application driven / using
XML etc. If not then you can most likely use:

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

as defined in:

http://www.w3.org/TR/2009/NOTE-xhtml-media-types-20090116/#C_9

...but there are restrictions: "In general, this media type is
*NOT*suitable for XHTML except when the XHTML is conforms to the
guidelines in Appendix
A<http://www.w3.org/TR/2009/NOTE-xhtml-media-types-20090116/#compatGuidelines>;."
(e.g. you can't add elements and attributes from foreign namespaces, such as
XHTML+MathML).


Testing locally is okay, but also validate remotely as it is important to
check how the document is "served" up in the live environment - there is a
difference.

Regards