mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
jQuery.contains() handles document objects directly. Close gh-879.
This commit is contained in:
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 );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user