Closed Bug 185623 Opened 23 years ago Closed 23 years ago

"Type" attribute of <a> should have priority over "application/octet-stream"

Categories

(SeaMonkey :: General, defect)

x86
Windows 2000
defect
Not set
major

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 74374

People

(Reporter: lapsap7+mz, Assigned: asa)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3a) Gecko/20021201 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3a) Gecko/20021201 I've got lots of text files without .txt extension but I still want them to be displayed as text files, so I use HTML line like this: <a href="read_me" type="text/plain">Read this to know more</a> However, it seems that the web server (IIS in W2k) is sending application/octet-stream to Mozilla when a user clicks on the link, and thus Mozilla doesn't care about the type attribute defined there. The only solution is to give .txt extension to those files but this isn't practical. Reproducible: Always Steps to Reproduce:
-> invalid mozilla will render all text files with a text/plain mime-type. You must fix your server to send the correct mime-type.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
Well, not only I couldn't see how to configure the stupid MS IIS, what about those webmasters who couldn't configure web servers? It would be unfair to them because they're webmasters, not server administrators.
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
Summary: "Type" attribute of <a> seems to be effectless → "Type" attribute of <a> should have priority over "application/octet-stream"
see bug 74374 comment 1 : the type-attribute is supposed to be a fallback to help user-agents that can't , it can't override the settings on the server. Too bad, it would be more logical that the author can override.
Googling on "IIS" and "MIME" (or perhaps "MIMEmap") will produce a number of tutorials on how to configure MIME-types in IIS. *** This bug has been marked as a duplicate of 74374 ***
Status: REOPENED → RESOLVED
Closed: 23 years ago23 years ago
Resolution: --- → DUPLICATE
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.