diff --git a/src/dom/dom.js b/src/dom/dom.js index 86f3b77..7b02f64 100644 --- a/src/dom/dom.js +++ b/src/dom/dom.js @@ -1004,6 +1004,9 @@ Element.Methods = { **/ getStyle: function(element, style) { element = $(element); + if (!element.style) + return null; + style = style == 'float' ? 'cssFloat' : style.camelize(); var value = element.style[style]; if (!value || value == 'auto') {