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:
parent
ef78a973ef
commit
5992866e46
@ -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);
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user