jquery/test/data/manipulation/set-global-scripttest.js
Michał Gołębiowski-Owczarek 3dedc3f2d4 Core: Fire iframe script in its context, add doc param in globalEval
1. Support passing custom document to jQuery.globalEval; the script will be
   invoked in the context of this document.
2. Fire external scripts appended to iframe contents in that iframe context;
   this was already supported & tested for inline scripts but not for external
   ones.

Fixes gh-4518
Closes gh-4601

(cherry picked from commit 4592595b47)
2020-02-10 19:20:50 +01:00

3 lines
47 B
JavaScript

window.scriptTest = true;
parent.finishTest();