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); }