W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2007

[whatwg] Style sheet loading and parsing (over HTTP)

From: Anne van Kesteren <annevk@opera.com>
Date: Tue, 22 May 2007 10:44:12 +0200
Message-ID: <op.tspzvyp864w2qv@annevk.hotspot.sfr.fr>
For compatibility with the web it seems important to simply ignore  
Content-Type in all modes. Firefox has some hack where they "respect"  
Content-Type in standards mode except when the response Content-Type  
doesn't contain a "/" or "\". For instance

   Content-Type: "null"

would be applied. Internet Explorer doesn't respect Content-Type at all  
either. However, it does respect HTTP status codes. So redirects are  
followed and responses with status codes that indicate some type of error  
(404, 410, 501, etc.) are not parsed as style sheets. Anything that ends  
up with a status code of 200 that is fetched from a "style sheet loader"  
(<link rel=stylesheet>, @import) is parsed and applied.

It would be nice if the specification said something along those lines.

Anne van Kesteren
Received on Tuesday, 22 May 2007 01:44:12 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:55 UTC