From 9ced0274653b8b17ceb6b0675e2ae05433dcf202 Mon Sep 17 00:00:00 2001 From: Mike Sherov Date: Sun, 30 Sep 2012 17:41:42 -0400 Subject: Fix #12537, element.css('filter') returns undefined in IE9. Close gh-942. --- src/css.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/css.js b/src/css.js index 9e72073eb..403516e0f 100644 --- a/src/css.js +++ b/src/css.js @@ -290,7 +290,9 @@ if ( window.getComputedStyle ) { if ( computed ) { - ret = computed[ name ]; + // getPropertyValue is only needed for .css('filter') in IE9, see #12537 + ret = computed.getPropertyValue( name ) || computed[ name ]; + if ( ret === "" && !jQuery.contains( elem.ownerDocument, elem ) ) { ret = jQuery.style( elem, name ); } -- cgit v1.2.3