iframe shimming or ie6 (and below) select z-index bug

You don’t have to hide every select using a loop. All you need is a CSS rule like: * html .hideSelects select { visibility: hidden; } And the following JavaScript: //hide: document.body.className +=’ hideSelects’ //show: document.body.className = document.body.className.replace(‘ hideSelects’, ”); (Or, you can use your favourite addClass / removeClass implementation).

What bug does zoom:1; fix in CSS?

This provides an internal property known as hasLayout in Internet Explorer versions 7 and lower. The definitive article on the subject is here: http://www.satzansatz.de/cssd/onhavinglayout.html A lot of Internet Explorer’s rendering inconsistencies can be fixed by giving an element “layout.” In this article, the authors focus on some aspects of this complicated matter. “Layout” is an … Read more

Getting an absolute URL from a relative one. (IE6 issue)

How strange! IE does, however, understand it when you use innerHTML instead of DOM methods. function escapeHTML(s) { return s.split(‘&’).join(‘&amp;’).split(‘<‘).join(‘&lt;’).split(‘”‘).join(‘&quot;’); } function qualifyURL(url) { var el= document.createElement(‘div’); el.innerHTML= ‘<a href=”‘+escapeHTML(url)+'”>x</a>’; return el.firstChild.href; } A bit ugly, but more concise than Doing It Yourself.

Do HTML5 custom data attributes “work” in IE 6?

You can retrieve values of custom (or your own) attributes using getAttribute. Following your example with <div id=”geoff” data-geoff=”geoff de geoff”> I can get the value of data-geoff using var geoff = document.getElementById(“geoff”); alert(geoff.getAttribute(“data-geoff”)); See MSDN. And although it is mentioned there that you need IE7 to get this to work, I tested this a … Read more

Running Internet Explorer 6, Internet Explorer 7, and Internet Explorer 8 on the same machine

I wouldn’t do it. Use virtual PCs instead. It might take a little setup, but you’ll thank yourself in the long run. In my experience, you can’t really get them cleanly installed side by side and unless they are standalone installs you can’t really verify that it is 100% true-to-browser rendering. Update: Looks like one … Read more