aboutsummaryrefslogtreecommitdiffstats
path: root/src/css.js
diff options
context:
space:
mode:
authorMike Sherov <mike.sherov@gmail.com>2012-09-30 17:41:42 -0400
committerDave Methvin <dave.methvin@gmail.com>2012-09-30 22:14:49 -0400
commit9ced0274653b8b17ceb6b0675e2ae05433dcf202 (patch)
tree84acda0ae5ec1abef16e75c582a3e48815700264 /src/css.js
parent22fac5c2e40b00911933040afaf9adcdd2c00ac2 (diff)
downloadjquery-9ced0274653b8b17ceb6b0675e2ae05433dcf202.tar.gz
jquery-9ced0274653b8b17ceb6b0675e2ae05433dcf202.zip
Fix #12537, element.css('filter') returns undefined in IE9. Close gh-942.
Diffstat (limited to 'src/css.js')
-rw-r--r--src/css.js4
1 files changed, 3 insertions, 1 deletions
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 );
}