From: Oleg Gaidarenko Date: Mon, 20 Aug 2012 00:34:03 +0000 (-0400) Subject: jQuery.contains() handles document objects directly. Close gh-879. X-Git-Tag: 1.8.1~46 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=109d91070151acdb19ed2c9c06c9dcb5b8930807;p=jquery.git jQuery.contains() handles document objects directly. Close gh-879. --- 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 ); }