potential workaround for IE 6 issue where element can become something other than a DOM node
This commit is contained in:
parent
6839886699
commit
ef78a973ef
|
@ -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);
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue