Closed Bug 156145 Opened 22 years ago Closed 22 years ago

strict on css mimetype requirements (i.e doesn't load it if it's plain/text)

Categories

(SeaMonkey :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED INVALID

People

(Reporter: an179, Assigned: Matti)

References

()

Details

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.1a) Gecko/20020611
BuildID:    2002061104

Some server has **** mime handelling ...

i upload a css file (and i can only upload it as text/plain, as i cant change
the servers mime handelling (not mine))
and then mozilla doesnt load it as it is not text/css....

but other browsers do IE, Konq etc. etc.
Also netscape 6.2 loads it with no problem... so i can only assume moz1.o+ is
too strict.

(ive tried it in moz1.0 and moz1.1alpha)...

Cheers, Aaron!
----------------------------------------------------

Reproducible: Always
Steps to Reproduce:
1.upload a css file (with the webserver giving it a text/plain mime type)
2.upload a html file linking to that css file
3.look at the index.html file now.

Actual Results:  moz doesnt load the css file

Expected Results:  load the css file (it's too strict on the mime type (other
browsers arent)+ i cannot change the mimetype handeling (it's not my server +
they wont(ive asked))
-> invalid

You can remove the doctype in your document and mozilla use the internal quirks
Mode and accepts also css files with a wrong mime-type.
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
you can also add .htaccess if your ISP use Apache.
(see the release notes..)
but then without <!DOCTYPE i dont get valid html (via the w3c checker)

which i __really__ want. :(
i have no access to the server...
Aaron, just removing the DTD url from your doctype will make it trigger quirks
mode.  See http://www.mozilla.org/docs/web-developer/quirks/ and
http://www.mozilla.org/docs/web-developer/quirks/doctypes.html

The problem is that your document _is_ valid HTML, and is treated as such.  This
includes standards-compliance in rendering, loading stylesheets, and other such
matters.
Status: RESOLVED → VERIFIED
Summary: too strict on css mimetype erquirements (i.e doesnt load it if it's plain/text) → too strict on css mimetype requirements (i.e doesn't load it if it's plain/text)
*** Bug 182236 has been marked as a duplicate of this bug. ***
*** Bug 230073 has been marked as a duplicate of this bug. ***
Summary: too strict on css mimetype requirements (i.e doesn't load it if it's plain/text) → strict on css mimetype requirements (i.e doesn't load it if it's plain/text)
As noted above, 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
*** Bug 238076 has been marked as a duplicate of this bug. ***
Product: Browser → Seamonkey
*** Bug 311155 has been marked as a duplicate of this bug. ***
You need to log in before you can comment on or make changes to this bug.