fixes #11048: make sure support tests don't modify the layout of the body

This commit is contained in:
Mike Sherov 2011-12-26 15:22:29 -05:00 committed by Dave Methvin
parent c0da49ff37
commit 2982abbb13

View File

@ -283,6 +283,10 @@ jQuery.support = (function() {
support.pixelMargin = ( window.getComputedStyle( div, null ) || { marginTop: 0 } ).marginTop !== "1%"; support.pixelMargin = ( window.getComputedStyle( div, null ) || { marginTop: 0 } ).marginTop !== "1%";
} }
if ( typeof container.style.zoom !== "undefined" ) {
container.style.zoom = 1;
}
body.removeChild( container ); body.removeChild( container );
div = container = null; div = container = null;