]> source.dussan.org Git - jquery.git/commitdiff
Fix #14150: revert to ownerDocument.defaultView.getComputedStyle. Close gh-1311....
authorChris Price <price.c@gmail.com>
Mon, 19 Aug 2013 16:12:46 +0000 (18:12 +0200)
committerMichał Gołębiowski <m.goleb@gmail.com>
Mon, 19 Aug 2013 16:13:09 +0000 (18:13 +0200)
src/css.js

index 86399aa51b9ea8cb1388f341e00cd2a8a95b439f..f2c0473dda11f7a491912b094911e98174011b9e 100644 (file)
@@ -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 ) {