W3C home > Mailing lists > Public > www-validator@w3.org > September 2002

Re: possible bug in the validator?

From: Olivier Thereaux <ot@w3.org>
Date: Wed, 4 Sep 2002 21:18:35 +0900
To: Lloyd Wood <l.wood@eim.surrey.ac.uk>
Cc: Liam Quinn <liam@htmlhelp.com>, Vojtech Rynda <voitech@seznam.cz>, www-validator@w3.org
Message-ID: <20020904121835.GB19325@w3.mag.keio.ac.jp>

On Wed, Sep 04, 2002, Lloyd Wood wrote:
> > Your server is sending the header
> > Content-Type: text/html; charset=us-ascii
> > which overrides the charset specified within the HTML document.
> Surely the charset in the document should take precedence?

No, see http://www.w3.org/TR/REC-html40/charset.html#h-5.2.2

Conforming user agents must observe the following priorities when
determining a document's character encoding (from highest priority to

   1. An HTTP "charset" parameter in a "Content-Type" field.
   2. A META declaration with "http-equiv" set to "Content-Type" and a
value set for "charset".
   3. The charset attribute set on an element that designates an
external resource.

The validator is behaving according to the specification.
Olivier Thereaux - W3C
http://www.w3.org/People/olivier | http://yoda.zoy.org
Received on Wednesday, 4 September 2002 08:18:36 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:58:29 UTC