From b56e7e754b2b25a4a24ecb6bdb32ec943aceb29a Mon Sep 17 00:00:00 2001 From: Andrew Dupont Date: Fri, 4 Dec 2009 18:23:47 -0600 Subject: [PATCH] Rewrite IE logic. --- src/dom/layout.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dom/layout.js b/src/dom/layout.js index aae2c29..4234e0b 100644 --- a/src/dom/layout.js +++ b/src/dom/layout.js @@ -870,7 +870,8 @@ // When the BODY is the offsetParent, IE6 mistakenly reports the // parent as HTML. Use that as the litmus test to fix another // annoying IE6 quirk. - if (parent.nodeName.toUpperCase() === 'HTML') { + if (element.offsetParent && + element.offsetParent.nodeName.toUpperCase() === 'HTML') { return positionedOffset(element); }