aboutsummaryrefslogtreecommitdiffstats
path: root/src/support.js
diff options
context:
space:
mode:
authorElijah Manor <elijah.manor@gmail.com>2012-11-15 22:20:07 -0500
committerDave Methvin <dave.methvin@gmail.com>2012-11-18 14:49:36 -0500
commit5904468b9c49d7d5a780010f44d7e76dd4c81706 (patch)
tree409e1e682e91484718bcea9e5367132b46e2d48c /src/support.js
parent05fb5de3ee1ea0610e95d2081aaab8702be651de (diff)
parent71b299249f8b1f6c0a09b998d70b848d3f93266e (diff)
downloadjquery-5904468b9c49d7d5a780010f44d7e76dd4c81706.tar.gz
jquery-5904468b9c49d7d5a780010f44d7e76dd4c81706.zip
Fix #8908. Don't let change to originals affect clones in IE9/10. Close gh-886.
Diffstat (limited to 'src/support.js')
-rw-r--r--src/support.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/support.js b/src/support.js
index 7629c38e7..1001f407a 100644
--- a/src/support.js
+++ b/src/support.js
@@ -169,6 +169,10 @@ jQuery.support = (function() {
}
}
+ div.style.backgroundClip = "content-box";
+ div.cloneNode( true ).style.backgroundClip = "";
+ support.clearCloneStyle = div.style.backgroundClip === "content-box";
+
// Run tests that need a body at doc ready
jQuery(function() {
var container, div, tds, marginDiv,