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