From 22449eb968622c2e14d6c8d8de2cf1e1ba4adccd Mon Sep 17 00:00:00 2001 From: Timmy Willison Date: Fri, 6 Nov 2015 18:36:38 -0500 Subject: Manipulation: execute scripts from iframe in the iframe's context Fixes gh-1757 Close gh-2696 --- src/manipulation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/manipulation.js') diff --git a/src/manipulation.js b/src/manipulation.js index ceb970cbd..eaf2e0998 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -192,7 +192,7 @@ function domManip( collection, args, callback, ignored ) { jQuery._evalUrl( node.src ); } } else { - jQuery.globalEval( node.textContent.replace( rcleanScript, "" ) ); + jQuery.globalEval( node.textContent.replace( rcleanScript, "" ), doc ); } } } -- cgit v1.2.3