mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
jQuery.contains() handles document objects directly. Close gh-879.
This commit is contained in:
committed by
Dave Methvin
parent
ff7b7cfd1d
commit
109d910701
@@ -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 );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user