Revert "potential workaround for IE 5 issue where element can become something other than a DOM node"

This reverts commit ef78a973ef.
This commit is contained in:
John Bintz 2010-01-06 19:41:33 -05:00
parent ef78a973ef
commit 5992866e46

View File

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