aboutsummaryrefslogtreecommitdiffstats
path: root/src/css.js
diff options
context:
space:
mode:
authorDave Methvin <dave.methvin@gmail.com>2012-07-26 09:28:56 -0400
committerDave Methvin <dave.methvin@gmail.com>2012-07-26 09:30:49 -0400
commit14f67a95189422f83f5e9e19ed7b2d636da717b9 (patch)
treef3829ab54751c281f639e28e725d4d351227b45c /src/css.js
parent0a1be437ff78d957e32d8493287c1041fed8cbb7 (diff)
downloadjquery-14f67a95189422f83f5e9e19ed7b2d636da717b9.tar.gz
jquery-14f67a95189422f83f5e9e19ed7b2d636da717b9.zip
Per @gibson042, don't need .documentElement since Sizzle handles.
Diffstat (limited to 'src/css.js')
-rw-r--r--src/css.js2
1 files changed, 1 insertions, 1 deletions
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 ) {