rem: if(OpenLayers.Element.getStyle(child, 'position') == 'absolute') { 
add:     if(child && child.style && OpenLayers.Element.getStyle(child, 'position') == 'absolute') { 
context: OpenLayers.Util.pagePosition = function(forElement) {    var valueT = 0, valueL = 0;    var element = forElement;    var child = forElement;    while(element) {        if(element == document.body) {            if(OpenLayers.Element.getStyle(child, 'position') == 'absolute') {                break;            }        }                valueT += element.offsetTop  || 0;        valueL += element.offsetLeft || 0;        child = element;        try {            // wrapping this in a try/catch because IE chokes on the offsetParent            element = element.offsetParent;        } catch(e) {            OpenLayers.Console.error(                "OpenLayers.Util.pagePosition failed: element with id " +                element.id + " may be misplaced."            );            break;        }    }    element = forElement;    while(element) {        valueT -= element.scrollTop  || 0;        valueL -= element.scrollLeft || 0;        element = element.parentNode;    }        return [valueL, valueT];};
meta: 1027	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1027/3d71b4ff4e09480978c5f9ac06f86d10f67721ca/Util.js/buggy/lib/OpenLayers/Util.js