diff options
author | Elijah Manor <elijah.manor@gmail.com> | 2012-08-13 07:46:55 -0500 |
---|---|---|
committer | Elijah Manor <elijah.manor@gmail.com> | 2012-08-13 07:46:55 -0500 |
commit | f29633536076e831e25705b560c983674ed839ee (patch) | |
tree | 85b28ec0fd8b03cc98a459481c72305f34a48435 /src/css.js | |
parent | f952b97997e529f872859e5cfd43070fc533f3b0 (diff) | |
download | jquery-f29633536076e831e25705b560c983674ed839ee.tar.gz jquery-f29633536076e831e25705b560c983674ed839ee.zip |
Add support check, added assertion to check if cleared, add edge case for backgroundPosition
Diffstat (limited to 'src/css.js')
-rw-r--r-- | src/css.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/css.js b/src/css.js index dcba720e5..72ee8eef9 100644 --- a/src/css.js +++ b/src/css.js @@ -204,6 +204,9 @@ jQuery.extend({ // If a hook was provided, use that value, otherwise just set the specified value if ( !hooks || !("set" in hooks) || (value = hooks.set( elem, value, extra )) !== undefined ) { + // IE9/10 Clearing Cloned Style Clear's Original Style. Fixes bug #8908 + value = !jQuery.support.clearCloneStyle && value === "" && name.match( /backgroundPosition/ ) ? "0% 0%" : value; + // Wrapped to prevent IE from throwing errors when 'invalid' values are provided // Fixes bug #5509 try { |