{"id":68,"date":"2007-11-01T07:57:59","date_gmt":"2007-11-01T06:57:59","guid":{"rendered":"http:\/\/patrick-nagel.net\/blog\/archives\/68"},"modified":"2007-11-01T08:15:07","modified_gmt":"2007-11-01T07:15:07","slug":"fun-with-internet-explorer","status":"publish","type":"post","link":"https:\/\/patrick-nagel.net\/blog\/archives\/68","title":{"rendered":"&#8220;Fun&#8221; with Internet Explorer"},"content":{"rendered":"<p>I just spent half the day hunting down a tricky bug in (probably) Internet Explorer.<\/p>\n<p>Situation: We were working on a piece of documentation consisting of multiple HTML files using frames. It was planned to burn this directory structure to a CD, and the CD would then be delivered to the customer.<\/p>\n<p>While checking the docs for browser compatibility, we found out, that on some computers (I still don&#8217;t know the pattern&#8230; all running Windows XP SP2, although some of them have a chinese language version, some of them have an english language version installed) the left navigation frame just didn&#8217;t work, as in nothing happened when clicking on the links. The linked URLs were correct, the files existed, but the browser in question (Internet Explorer) just didn&#8217;t open them. BUT: This happened only, when the html files were stored on the local hard drive. When we accessed them via SAMBA on a network share, everything was fine! In Firefox it worked perfectly fine from everywhere.<br \/>\nAfter a lot of searching, following wrong assumptions and so on, I found out, that when I accessed the docs on the local hard drive, Internet Explorer switched to &#8216;Unknown zone (mixed)&#8217;. When accessing them on the SAMBA share, Internet Explorer always showed &#8216;Internet&#8217; zone. I tried to find out what could trigger Internet Explorer to do that, but didn&#8217;t find anything useful. Due to closed source and no debugging possibilities I didn&#8217;t see any way to find it out on my own.<br \/>\nAnother couple of hours later, I converted the HTML file containing the navigation menu from DOS\/Windows style line breaks (\\r\\n) to UNIX style line breaks (\\n) with &#8216;dos2unix&#8217;. I did this, because I wanted to use sed on my Linux system to remove a big amount of empty lines in the file (I&#8217;d like to know how they got there in the first place, but that&#8217;s another story).<br \/>\nAnd suddenly it worked. From local disk. I couldn&#8217;t believe it at first, and converted the file back to UNIX style (using &#8216;unix2dos&#8217;), and it stopped working again, so I was sure it was this change what caused the bug to not being triggered anymore.<br \/>\nSo to sum up: we have to convert one of the HTML files (which were generated on a <strong>Windows<\/strong> machine) in the package (consisting of hundreds of files) from <strong>Windows<\/strong> style line breaks to UNIX style line breaks to make the whole thing work on a <strong>Windows<\/strong> target system.<\/p>\n<p>And who may I thank for all of this? Beloved Microsoft Corporation.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I just spent half the day hunting down a tricky bug in (probably) Internet Explorer. Situation: We were working on a piece of documentation consisting of multiple HTML files using frames. It was planned to burn this directory structure to a CD, and the CD would then be delivered to the customer. While checking the &hellip; <a href=\"https:\/\/patrick-nagel.net\/blog\/archives\/68\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;&#8220;Fun&#8221; with Internet Explorer&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-68","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/patrick-nagel.net\/blog\/wp-json\/wp\/v2\/posts\/68","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/patrick-nagel.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/patrick-nagel.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/patrick-nagel.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/patrick-nagel.net\/blog\/wp-json\/wp\/v2\/comments?post=68"}],"version-history":[{"count":0,"href":"https:\/\/patrick-nagel.net\/blog\/wp-json\/wp\/v2\/posts\/68\/revisions"}],"wp:attachment":[{"href":"https:\/\/patrick-nagel.net\/blog\/wp-json\/wp\/v2\/media?parent=68"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/patrick-nagel.net\/blog\/wp-json\/wp\/v2\/categories?post=68"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/patrick-nagel.net\/blog\/wp-json\/wp\/v2\/tags?post=68"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}