Closed
Bug 230073
Opened 22 years ago
Closed 22 years ago
External CSS not honored if MIME type 'text/plain'
Categories
(Firefox :: General, enhancement)
Tracking
()
VERIFIED
DUPLICATE
of bug 156145
People
(Reporter: jp, Assigned: bugzilla)
References
()
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031007 Firebird/0.7
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5) Gecko/20031007 Firebird/0.7
Firebird 0.7 does not honor my CSS on my ISP's incorrectly configured and
ancient Apache (1.1.1), but every other browser I tested (Mozilla 1.5; Opera
6.06, 7.03; IE 5.5, 6.0) DOES honor it.
The page is <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd"> and has been validated
(http://validator.w3.org/check?uri=http%3A%2F%2Fwww.jpsdomain.org%2Fabout.html).
The CSS has also been validated, which is how I found what I think is the root
cause (bad MIME type).
When run from a different ISP (and locally) the same HTML and CSS code works in
Firebird and all other tested browsers.
Reproducible: Always
Steps to Reproduce:
1. Browse to http://www.jpsdomain.org/about.html = CSS broken
2. Browse to http://www.speakeasy.org/~vossenjp/about.html = CSS works
3. This shows valid CSS:
http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.speakeasy.org%2F%7Evossenjp%2Fjpsdomain.css&warning=1&profile=css2&usermedium=all
4. This shows "I/O Error: Unknown mime type : text/plain":
http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Fwww.jpsdomain.org%2Fjpsdomain.css&warning=1&profile=css2&usermedium=all
Actual Results:
CSS not honored by Firebird.
Expected Results:
Ideally, Firebird should honor this, even though it's technically broken.
I'd like to ask my ISP to fix this, but I'll wait a while in case the broken
configuration is useful for testing (let me know). I don't have high hopes for a
successful fix anyway from them anyway... :-(
Comment 1•22 years ago
|
||
broken mimetypes cause all sorts of nasty problems.
As a note, this is technically INVALID, and can be replicated in Mozilla 1.7a
nightly from a couple weeks back and current 0.8 branch builds of Firebird
Comment 2•22 years ago
|
||
If you change the doctype of the page to drop Mozilla into quirks mode, this
problem will ago away. See
http://www.mozilla.org/docs/web-developer/quirks/doctypes.html and
http://www.mozilla.org/docs/web-developer/quirks/quirklist.html.
IMO, Mozilla should accept CSS with any mime type regardless of the doctype of
the page.
*** This bug has been marked as a duplicate of 156145 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Comment 3•22 years ago
|
||
Verified dup, and imo Jesse's opinion in comment 2 doesn't really matter as long
as dbaron, Ian, and I agree that our current behavior is what we want....
Status: RESOLVED → VERIFIED
As noted in Bug 156145, if you can't get the server fixed, you may be able to
use an .htaccess to add the mime type yourself, for your directory.
See:
http://devedge.netscape.com/viewsource/2002/incorrect-mime-types/
http://www.javascriptkit.com/howto/htaccess.shtml
You need to log in
before you can comment on or make changes to this bug.
Description
•