[thelist] text/plain for html files

pandy pandion at gmx.net
Sun Nov 23 07:19:00 CST 2003

 fstorr wrote:
>Am I right in thinking that if I specify a content-type of "text/plain" on an html file (with a .htm(l) exension) that the browser should render it as plain text and not parse it as html and thus ignore things like linked external CSS files?
>I've tried to do this with a page using:
><meta http-equiv="Content-Type" content="text/plain; charset=iso-8859-1" />
>but with no joy - it still gives me HTML in Moz and Opera.  Is this right?

Probably because the server sends text/html in its HTTP headers and that takes precedence. When it comes to IE it doesn't work even if you change the content-type server side. When IE sees <html> it parses it. Even if the file has the extension .txt and is served as text/plain.


More information about the thelist mailing list