Perl Monk, Perl Meditation | |
PerlMonks |
Love/Hate Internet Explorerby Ovid (Cardinal) |
on Nov 30, 2001 at 03:06 UTC ( [id://128494]=perlmeditation: print w/replies, xml ) | Need Help?? |
Many of you are probably aware that the latest versions of Internet Explorer violate W3C specifications and ignore the Content-type: header of documents that are sent. Instead, IE examines the beginning of the document and attempts to infer what the content type should actually be. If you send the header "Content-type: image/gif", but you actually send a jpeg, or a tiff, IE will still render it correctly. That means that pages which render properly on IE may very well fail on other browsers. Well, I just discovered a new (to me) facet of this problem. I have an administrative console for a Web site that clients know is only used with IE 5.0 or better. No reason to test it on other browsers, right? Wrong. I recently discovered that the administrative console would not work on IE 5 on a MacOS 8.4. The access logs showed that my programs were getting called properly and returning 200 status codes. No entries were in the error log. Further research revealed that my security routines were still trapping violations behind the scenes. No pages would render, however. Here's the script which failed:
Notice anything funny about it? Anything, anything, Bueller? Repeat after me: "Ovid is a moron". I never bothered to send a header. IE on Windows realized that the frameset had accidentally been included in the headers and rendered it properly. IE on a Mac didn't catch this and just rendered a blank page. I tested it on Navigator and got the message "Document contains no data." That told me instantly what happened. If IE had bothered to follow standards, I would have caught this bug months ago. Sigh. Cheers, Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.
Back to
Meditations
|
|