From 6e739fd2ba917124dfbba5334eaa502e739490b8 Mon Sep 17 00:00:00 2001 From: John Resig Date: Mon, 14 Jan 2008 19:17:35 +0000 Subject: [PATCH] Added a check to make sure that .style exists before trying to access it (Bug #2105). --- src/core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.js b/src/core.js index 4a4ff95d4..bba9883f5 100644 --- a/src/core.js +++ b/src/core.js @@ -836,7 +836,7 @@ jQuery.extend({ if ( name.match( /float/i ) ) name = styleFloat; - if ( !force && elem.style[ name ] ) + if ( !force && elem.style && elem.style[ name ] ) ret = elem.style[ name ]; else if ( document.defaultView && document.defaultView.getComputedStyle ) { -- 2.39.5