From 3e3680c2cdc524ee9194ef27fdce318cf301144c Mon Sep 17 00:00:00 2001 From: Chris Price Date: Mon, 19 Aug 2013 18:10:11 +0200 Subject: [PATCH] Fix #14150: revert to ownerDocument.defaultView.getComputedStyle. Close gh-1311. --- src/css.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/css.js b/src/css.js index 16c093bd7..caad0076a 100644 --- a/src/css.js +++ b/src/css.js @@ -53,7 +53,7 @@ function vendorPropName( style, name ) { // NOTE: we've included the "window" in window.getComputedStyle // because jsdom on node.js will break without it. function getStyles( elem ) { - return window.getComputedStyle( elem, null ); + return elem.ownerDocument.defaultView.getComputedStyle( elem, null ); } function showHide( elements, show ) { -- 2.39.5