aboutsummaryrefslogtreecommitdiffstats
path: root/src/css.js
diff options
context:
space:
mode:
authorOleg Gaidarenko <markelog@gmail.com>2012-08-19 20:34:03 -0400
committerDave Methvin <dave.methvin@gmail.com>2012-08-19 20:34:03 -0400
commit109d91070151acdb19ed2c9c06c9dcb5b8930807 (patch)
treeb89ce62c6d9e00b6e06499d3b81e3c1e8d6ade3c /src/css.js
parentff7b7cfd1d754f6daf20541dc71c84ad690d3708 (diff)
downloadjquery-109d91070151acdb19ed2c9c06c9dcb5b8930807.tar.gz
jquery-109d91070151acdb19ed2c9c06c9dcb5b8930807.zip
jQuery.contains() handles document objects directly. Close gh-879.
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 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 );
}