Improved fix for #2030 to work with IE11 quirks mode.