Commit 109d9107 authored by Oleg Gaidarenko's avatar Oleg Gaidarenko Committed by Dave Methvin

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

parent ff7b7cfd
...@@ -289,7 +289,7 @@ if ( window.getComputedStyle ) { ...@@ -289,7 +289,7 @@ if ( window.getComputedStyle ) {
if ( computed ) { if ( computed ) {
ret = computed[ name ]; ret = computed[ name ];
if ( ret === "" && !jQuery.contains( elem.ownerDocument.documentElement, elem ) ) { if ( ret === "" && !jQuery.contains( elem.ownerDocument, elem ) ) {
ret = jQuery.style( elem, name ); ret = jQuery.style( elem, name );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment