diff --git a/lib/OpenLayers/Util.js b/lib/OpenLayers/Util.js index 2221125a69..2cbf0254a0 100644 --- a/lib/OpenLayers/Util.js +++ b/lib/OpenLayers/Util.js @@ -231,8 +231,19 @@ OpenLayers.Util.onImageLoadError = function() { OpenLayers.Util.alphaHack = function() { var arVersion = navigator.appVersion.split("MSIE"); var version = parseFloat(arVersion[1]); + var filter = false; - return ( (document.body.filters) && + // IEs4Lin dies when trying to access document.body.filters, because + // the property is there, but requires a DLL that can't be provided. This + // means that we need to wrap this in a try/catch so that this can + // continue. + + try { + filter = document.body.filters; + } catch (e) { + } + + return ( filter && (version >= 5.5) && (version < 7) ); }