Improved IE6-8 compatibility.