December 07, 2002


I finally got the weblog formatting working with Mozilla.

The solution turned out to be adding a missing content type declaration in the web server config for test/css file .css files. Mozilla was thinking the css contents were text/plain even though the link declaration in the .html pages said it was text/css

I think this is really a bug in Mozilla, so being a good net citizen I have reported it on the Mozilla website as bug #184113.

I think there are still some other problems when browsing the weblog using Mozilla (like the extra formatting buttons not appearing on my blog entry form :-( ), but at least the main page now looks OK as a first step.
Ho hum, I do so hate cross-browser compatibility problems!

Entry categories: Weblog
Posted by Jorgen Thelin at December 7, 2002 09:08 PM - [PermaLink]
Traceback List
Well, the power of open source development strikes again. The bug has already been responded to and cloase as invalid: Mozilla accepts wrong mime-types for a css only if the html use quircks mode. From the release notes: When a page using a strict document type declaration (e.g. HTML 4.01 Strict) links to an external style sheet (using <link>, @import, etc.) Mozilla will load the style sheet only if it is served with a MIME type of "text/css". Style sheets served with other MIME types, like text/plain, application/x-pointplus, etc. will not be loaded. To add the proper CSS MIME type to an Apache web servers, add "text/css css" to the system mime.types file. Or if you can't do that, add "AddType text/css .css" to your .htaccess file. Turnaround time for the bug: 13 minutes ! Posted by: Jorgen Thelin on December 7, 2002 09:27 PM
Of course I now have to go and add all the other missing content type declarations to the server for things like text/xml for the RSS feeds. I wonder why the declarations in my old mime.types files are not being picked up? Ho hum. I guess life really is a journey not a destination ! Posted by: Jorgen Thelin on December 7, 2002 09:39 PM