Ref #12846 and 3b6d8941d8. Fix unit test for IE6.