Re: TXT or HTML? -- IE NEW BUG

From: Aaron Whiteman (aaronw@wsu.edu)
Date: 07/29/01


Date: Sun, 29 Jul 2001 11:18:14 -0700 (PDT)
From: Aaron Whiteman <aaronw@wsu.edu>
To: Magnus Bodin <magnus@bodin.org>
Subject: Re: TXT or HTML? -- IE NEW BUG
Message-ID: <20010729110602.U95911-100000@ethanol.pharmacy.wsu.edu>

On Sun, 29 Jul 2001, Magnus Bodin wrote:

> On Sat, Jul 28, 2001 at 06:56:15PM -0500, Nathan Neulinger wrote:
> > > IE doesn't recognize the extensions of files, which
> > > may contain some html
> > > code.
> > > Write a HTML file on NOTEPAD. save it as *.txt.
> > > upload to any server.then
> >
> > It's worse than that - even if you have a cgi script that outputs a
> > content-type of "text/plain" - some (all?) version of IE still processes
> > the doc as html. (This is a real PITA when using cgi scripts that output
> > plain text documents sometimes containing html.)
>
> No. But MSIE will do that if it finds some html-tags in the text.
> MSIE is programmed to act as it knows better than the webserver serving the
> MIME-header.
>
> I've put up some test-examples here: http://x42.com/test/mime/
>
> e.g. You cant start a textfile with the word "GIF89a" since it will be
> interpreted as a gif-picture. Pure magic-numbers stuff there.

Urk. Omniweb 4.0.1 does bad things too.

blink1.gif: loads gif
blink2: loads gif
blink3.exe: loads gif
nopicture.gif: on first load, error:
  Cannot Load Address
  File is not a GIF: head is 'THI', not 'GIF'
   I assume this is the correct behaviour?
text.exe: for some reason, I can't get Omniweb to load this file. No
          save dialog, no content. odd.
text.html: "GIF89a ====== ..."
text.txt: same as text.exe.

IE 5.1b1 (3408):
blink*: all load as the blinken gif
text.*: IE appears to be attemting to load the file as a gif.

-- 
Aaron Whiteman -- Thoughts of graduation vaguely apply.
   RCW 19.190 notice: This address is located in Washington State.
 My opinions are mine and do not reflect the views of the University.
:wq



Relevant Pages

  • Re: Unhandled exception in MSHTML.DLL
    ... > always crashes when its CHtmlView view started to load a specific local ... > html page, please let me know if I have misunderstood anything. ... > program crashes at. ... All 3 files load just fine in a regular browser. ...
    (microsoft.public.vc.mfc)
  • Re: Lost formatting in browser view source
    ... At the same time your html pages without php-code are processed by php. ... If you are concerned about users links and bookmarks to break, you have the nice option in apache to rewrite rules, if they try to load a "missing" html page, redirect them to a php file with the same name. ... run your editor, load 100 pages, use find/replace to change the address ...
    (alt.php)
  • Re: Table & Cell borders and spacing
    ... between each HTML element ... Thanks for the great idea of the transparent gif, ... I actually created a gif of the color that I wanted and placed it ... border size and color 'nothing' and selected collapse table border. ...
    (microsoft.public.frontpage.client)
  • Re: Poor perfomance with Spreadsheet OWC 10 with more than 200 columns
    ... then i load into the spreadsheet using XMLLOAD. ... HTML portion is what is slowing it down. ... > OWC Version: 10.0.0.2621 ... >>> to design the html table, reading from a Recordset. ...
    (microsoft.public.office.developer.web.components)
  • Re: Another basic question: How to call and show one Web Form from another Web Form?
    ... > I've got an ASP.NET Form (Web Form) that contains various info/controls. ... > ' What do I use to load MyWebForm in the current browser window? ... am I being unrealistic in wanting to NOT keep resorting back to HTML ... I find the HTML syntax mind boggling, ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)