aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichał Gołębiowski <m.goleb@gmail.com>2014-03-10 00:59:14 +0100
committerMichał Gołębiowski <m.goleb@gmail.com>2014-03-10 19:20:54 +0100
commit4a6d1631eaae2c5b89dfe58728b46a8997daba48 (patch)
tree19086e3a3e9d79f0c8adc45d81abcb08a03390ae /src
parent10e654218a65ec9a0ffc875137cea945389c69f1 (diff)
downloadjquery-4a6d1631eaae2c5b89dfe58728b46a8997daba48.tar.gz
jquery-4a6d1631eaae2c5b89dfe58728b46a8997daba48.zip
Css: Revert 24e587929f62428e1959b10aace6dc4fd65ab397
The workaround to be able to change !important styles broke the browser keeping the old CSS value if the new one was rejected. Patching it would involve a significant perf hit (~33%) so the initial patch needs to be reverted instead. Tests by m_gol & gibson042. (cherry-picked from 10e654218a65ec9a0ffc875137cea945389c69f1) Fixes #14836 Closes gh-1532
Diffstat (limited to 'src')
-rw-r--r--src/css.js3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/css.js b/src/css.js
index 4b1f91440..afebceb12 100644
--- a/src/css.js
+++ b/src/css.js
@@ -295,9 +295,6 @@ jQuery.extend({
// Support: IE
// Swallow errors from 'invalid' CSS values (#5509)
try {
- // Support: Chrome, Safari
- // Setting style to blank string required to delete "style: x !important;"
- style[ name ] = "";
style[ name ] = value;
} catch(e) {}
}