From 5992866e462b003a0727236745f80ddac6e89d75 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Wed, 6 Jan 2010 19:41:33 -0500 Subject: [PATCH] Revert "potential workaround for IE 5 issue where element can become something other than a DOM node" This reverts commit ef78a973ef5f383250bc64eff848c83748def55a. --- src/dom/dom.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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); },