From e5457a5a1faa642b0af13e87ee3f76f2ef704b30 Mon Sep 17 00:00:00 2001 From: timmywil Date: Wed, 25 May 2011 13:58:05 -0400 Subject: [PATCH] Remove unnecessary background setting in support now that we have the div reversion. Test added. --- src/support.js | 4 +--- test/data/testsuite.css | 4 ++++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/support.js b/src/support.js index 4420b7fc..e0474e76 100644 --- a/src/support.js +++ b/src/support.js @@ -147,9 +147,7 @@ jQuery.support = (function() { width: 0, height: 0, border: 0, - margin: 0, - // Set background to avoid IE crashes when removing (#9028) - background: "none" + margin: 0 }; if ( body ) { jQuery.extend( testElementStyle, { diff --git a/test/data/testsuite.css b/test/data/testsuite.css index 99851eaa..8889de0f 100644 --- a/test/data/testsuite.css +++ b/test/data/testsuite.css @@ -117,3 +117,7 @@ v\:oval { behavior:url(#default#VML); display:inline-block; } tt { display: none; } sup { display: none; } dfn { display: none; } + +/* #9239 Attach a background to the body( avoid crashes in removing the test element in support ) */ +body { background: url(http://www.ctemploymentlawblog.com/test.jpg) no-repeat -1000px 0; } +