diff options
author | Timmy Willison <timmywillisn@gmail.com> | 2015-11-06 18:36:38 -0500 |
---|---|---|
committer | Timmy Willison <timmywillisn@gmail.com> | 2015-11-09 14:14:30 -0500 |
commit | 22449eb968622c2e14d6c8d8de2cf1e1ba4adccd (patch) | |
tree | a10fbbc33d0eb7799b67f1b441459a3e59419da2 /test/data | |
parent | 67fa2eab6ef323b1d894e9e7f054c6e8c844d304 (diff) | |
download | jquery-22449eb968622c2e14d6c8d8de2cf1e1ba4adccd.tar.gz jquery-22449eb968622c2e14d6c8d8de2cf1e1ba4adccd.zip |
Manipulation: execute scripts from iframe in the iframe's context
Fixes gh-1757
Close gh-2696
Diffstat (limited to 'test/data')
-rw-r--r-- | test/data/manipulation/scripts-context.html | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/data/manipulation/scripts-context.html b/test/data/manipulation/scripts-context.html new file mode 100644 index 000000000..6958453c5 --- /dev/null +++ b/test/data/manipulation/scripts-context.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html> + <head> + <meta charset=utf-8 /> + <title>body</title> + </head> + <body> + <div id="qunit-fixture"></div> + <script src="../../jquery.js"></script> + <script> + window.parent.iframeCallback( + window, + document.body, + "<script>window.scriptTest = true;<\x2fscript>" + ); + </script> + </body> +</html> |