diff options
author | Oleg <markelog@gmail.com> | 2013-01-08 01:49:36 +0000 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2013-01-08 01:50:18 +0000 |
commit | ce67f0ce640854ae6921bed154da772d26a1167e (patch) | |
tree | 15c351f0ebbf073787f31658b0243c981f2855e7 /src/css.js | |
parent | c27d8e298832b25836dc6ff698cd8400ef207e13 (diff) | |
download | jquery-ce67f0ce640854ae6921bed154da772d26a1167e.tar.gz jquery-ce67f0ce640854ae6921bed154da772d26a1167e.zip |
Ref #8908. Update IE9 css clone fix. Close gh-1120.
Diffstat (limited to 'src/css.js')
-rw-r--r-- | src/css.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/css.js b/src/css.js index 210bed2e8..7ddce0a04 100644 --- a/src/css.js +++ b/src/css.js @@ -213,8 +213,8 @@ jQuery.extend({ // Fixes #8908, it can be done more correctly by specifing setters in cssHooks, // but it would mean to define eight (for every problematic property) identical functions - if ( value === "" && name.indexOf("background") === 0 ) { - value = " "; + if ( !jQuery.support.clearCloneStyle && value === "" && name.indexOf("background") === 0 ) { + style[ name ] = "inherit"; } // If a hook was provided, use that value, otherwise just set the specified value |