jQuery.contains() handles document objects directly. Close gh-879.

This commit is contained in:
Oleg Gaidarenko 2012-08-19 20:34:03 -04:00 committed by Dave Methvin
parent ff7b7cfd1d
commit 109d910701

View 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 );
}