Oftentimes in the web development community, you hear people complaining about developing for IE6. However, if you are developing using a robust JavaScript framework like jQuery, is developing for IE6 any different than developing for IE7?
Oftentimes in the web development community, you hear people complaining about developing for IE6.
Share
I’ll add a few points which haven’t been listed:
widthstyles in CSS. In IE6, if you have a child element that has awidthwhich is greater than the parent element, it would often ignore thewidthdeclaration of the parent and expand to fit the child, often requiring hacks ofoverflow: hiddento make sure the parent didn’t expand.This is mostly a good thing, but unfortunately introduces a number of other quirks, e.g.
<table style="width: 100%">in a scrolled DIV with CSSoverflowset tooverflow: autoorscrollwill expand the table to the width of the scrolled DIV including the width of the vertical scrollbar so some of the table will be cut off by the scroll bar on the right.IE7 I think also now supports
alpha: 1.0as well asfilter: alpha(opacity=100)SELECT z-index bug fixed: IE7 fixed a bug where the
SELECTelements have infinite z-index and are always above other elements unless you put anIFRAMEin between of theSELECTand the element you want to display above it. This is a problem for menus etc.CSS pseudo-classes improvements:
:hoverand some other similar CSS states are now supported outside of hyperlinks.Performance not necessarily improved: IE7 introduced many bugs in it’s VML engine, and in IE8 VML is now 10x slower than in IE7 when in standards compliance mode, so it’s not altogether good. In addition, I have test cases which show that finding
offsetLeftandoffsetTopin mouse events in standards compliance mode in IE7 can also be around 10x slower in my web app.IE in quirks mode though it’s about the same performance for VML and
offsetLeft/Topthroughout IE6, 7+8. My experience in IE7 standards compliance mode is it’s actually much slower than standards compliance mode in IE6, though it is definitely much more compliant.I think it’s a bit of a double-edged sword though, as raw JavaScript performance did improve, so things like working with array methods and for loops did improve even though I think the rendering engine and many of the associated DOM methods became much slower in standards compliance mode in IE7+.