From 109d91070151acdb19ed2c9c06c9dcb5b8930807 Mon Sep 17 00:00:00 2001 From: Oleg Gaidarenko Date: Sun, 19 Aug 2012 20:34:03 -0400 Subject: [PATCH] jQuery.contains() handles document objects directly. Close gh-879. --- src/css.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/css.js b/src/css.js index 22de5ba30..d9e7f00d6 100644 --- a/src/css.js +++ b/src/css.js @@ -289,7 +289,7 @@ if ( window.getComputedStyle ) { if ( computed ) { ret = computed[ name ]; - if ( ret === "" && !jQuery.contains( elem.ownerDocument.documentElement, elem ) ) { + if ( ret === "" && !jQuery.contains( elem.ownerDocument, elem ) ) { ret = jQuery.style( elem, name ); } -- 2.39.5