]> source.dussan.org Git - jquery.git/commitdiff
jQuery.contains() handles document objects directly. Close gh-879.
authorOleg Gaidarenko <markelog@gmail.com>
Mon, 20 Aug 2012 00:34:03 +0000 (20:34 -0400)
committerDave Methvin <dave.methvin@gmail.com>
Mon, 20 Aug 2012 00:34:03 +0000 (20:34 -0400)
src/css.js

index 22de5ba3049b90aee43ff05238cb8216a9544fed..d9e7f00d6220bb2a2923af1b2d602355a19f146f 100644 (file)
@@ -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 );
                        }