Christian Biesinger wrote:
> Sören Kuklau wrote:
> 
>> On 3/2/2002 1:57 PM, Val Sharp apparently wrote exactly the following:
>>
>>> Mozilla has started checking the Content Type of stylesheets, and 
>>> won't recognise the file if it has the wrong Content Type.
>>
>>
>>
>> True. This was, I think, changed in 0.9.7. Should be somewhere in the 
>> release notes.
> 
> 
> However, this is only the case for pages using the strict mode.
> It works for others, so a doctype like this can be used and the 
> stylesheet will work:
> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> (I hope I remember correctly...(

The problem is not the Strict mode but the URL. No matter if you use 
Strict or Transitional: The .css file will not be recognized if both the 
server sends the file with the wrong MIME type *and* a URL is specified, 
e.g.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/1999/PR-html40-19990824/loose.dtd";>

won't work if the server sends .css files with wrong MIME type, but the 
DTD you specified will.

Unfortunately, the 0.9.7 release notes state something which can easily 
be misinterpreted; I myself had to ask someone to find this out. 
Finally, I simply changed our server's settings. :-)


Jens
-- 
Jens Hatlak <http://jens.hatlak.de/>
Jugendnetz Frankfurt Adminteam <http://ffm.junetz.de/>


Reply via email to