]> source.dussan.org Git - jquery.git/commitdiff
Per @gibson042, don't need .documentElement since Sizzle handles.
authorDave Methvin <dave.methvin@gmail.com>
Thu, 26 Jul 2012 13:28:56 +0000 (09:28 -0400)
committerDave Methvin <dave.methvin@gmail.com>
Thu, 26 Jul 2012 13:30:49 +0000 (09:30 -0400)
src/css.js

index 85c73c090b3913ee9118e99d31209c581c8b69d5..dcba720e504d8a53587666965a6c5f1090bde5e0 100644 (file)
@@ -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 ) {