diff --git a/src/dom/dom.js b/src/dom/dom.js index 86f3b77..984b52d 100644 --- a/src/dom/dom.js +++ b/src/dom/dom.js @@ -1317,8 +1317,9 @@ Element.Methods = { if (element == document.body) return $(element); while ((element = element.parentNode) && element != document.body) - if (Element.getStyle(element, 'position') != 'static') - return $(element); + if (element.style) + if (Element.getStyle(element, 'position') != 'static') + return $(element); return $(document.body); },