From b414efdd8ea5bd59e2a1b9920abd3a36b06a47f8 Mon Sep 17 00:00:00 2001 From: Chris Price Date: Mon, 19 Aug 2013 18:12:46 +0200 Subject: [PATCH] Fix #14150: revert to ownerDocument.defaultView.getComputedStyle. Close gh-1311. (cherry-picked from 3e3680c2cdc524ee9194ef27fdce318cf301144c) --- src/css.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/css.js b/src/css.js index 86399aa51..f2c0473dd 100644 --- a/src/css.js +++ b/src/css.js @@ -291,7 +291,7 @@ jQuery.extend({ // because jsdom on node.js will break without it. if ( window.getComputedStyle ) { getStyles = function( elem ) { - return window.getComputedStyle( elem, null ); + return elem.ownerDocument.defaultView.getComputedStyle( elem, null ); }; curCSS = function( elem, name, _computed ) { -- 2.39.5