Turns out that IE8 emulation in IE9 does not always behave the same as IE8 proper. Lesson learnt.