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

Re: Unable to find style sheet when charset is specified in MIME-type

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Thu, 02 Dec 2004 17:08:46 +0100
To: Vincent Lönngren <vincent.lonngren.759@student.lu.se>
Cc: www-validator-css@w3.org
Message-ID: <41c23d6b.269954937@smtp.bjoern.hoehrmann.de>

* Vincent Lönngren wrote:
>If the style sheet location is specified like this:
>
><link rel="stylesheet" href="stylesheet.css" type="text/css;
>charset="utf-8"/>
>
>the style sheet is not found by the validator. If the charset
>specification is removed, the style sheet is found and validated. Case
>(UTF-8 or utf-8) does not make a difference.

I've asked the HTML Working Group for clarification whether this is
actually allowed

  http://www.w3.org/mid/40ccdc4d.97400945@smtp.bjoern.hoehrmann.de

but they have so far refused to comment, so it is not clear to me what
the correct behavior would be which means this is unlikely going to get
fixed any time soon. Clearly, this is not supposed to be marked up that
way, you are rather expected to use

  <link rel     = "stylesheet"
        href    = "stylesheet.css"
        type    = "text/css"
        charset = "utf-8" />

The CSS Validator should be able to find the style sheet then.
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Thursday, 2 December 2004 16:09:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 June 2012 00:14:15 GMT