IE<9 bug fixed, tests now pass on IE7 and 8