From 20de9a882c54ee41624a84976d3bea4c8c75b382 Mon Sep 17 00:00:00 2001 From: "Howard M. Lewis Ship" Date: Mon, 4 Apr 2011 16:07:25 -0700 Subject: [PATCH] Apply the standard fix for IE (why is this not yet fixed in Prototype?) --- .../resources/com/howardlewisship/tapx/prototype/prototype.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tapx-prototype/src/main/resources/com/howardlewisship/tapx/prototype/prototype.js b/tapx-prototype/src/main/resources/com/howardlewisship/tapx/prototype/prototype.js index 474b223..6b6c01f 100644 --- a/tapx-prototype/src/main/resources/com/howardlewisship/tapx/prototype/prototype.js +++ b/tapx-prototype/src/main/resources/com/howardlewisship/tapx/prototype/prototype.js @@ -3700,7 +3700,7 @@ Element.addMethods({ var isInline = (Element.getStyle(element, 'display') === 'inline'); if (!isInline && element.offsetParent) return $(element.offsetParent); - while ((element = element.parentNode) && element !== document.body) { + while ((element = element.parentNode) && element !== document.body && element !== document) { if (Element.getStyle(element, 'position') !== 'static') { return isHtml(element) ? $(document.body) : $(element); }