Manipulation: execute scripts from iframe in the iframe's context

Fixes gh-1757
Close gh-2696
This commit is contained in:
Timmy Willison
2015-11-06 18:36:38 -05:00
parent 67fa2eab6e
commit 22449eb968
4 changed files with 34 additions and 4 deletions

View File

@@ -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 );
}
}
}