From: Dave Methvin Date: Thu, 26 Jul 2012 13:28:56 +0000 (-0400) Subject: Per @gibson042, don't need .documentElement since Sizzle handles. X-Git-Tag: 1.8rc1~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=14f67a95189422f83f5e9e19ed7b2d636da717b9;p=jquery.git Per @gibson042, don't need .documentElement since Sizzle handles. --- diff --git a/src/css.js b/src/css.js index 85c73c090..dcba720e5 100644 --- a/src/css.js +++ b/src/css.js @@ -45,7 +45,7 @@ function vendorPropName( style, name ) { function isHidden( elem, el ) { elem = el || elem; - return jQuery.css( elem, "display" ) === "none" || !jQuery.contains( elem.ownerDocument.documentElement, elem ); + return jQuery.css( elem, "display" ) === "none" || !jQuery.contains( elem.ownerDocument, elem ); } function showHide( elements, show ) {