Bug #11940: Better tricks for fixing bad behavior in IE 8