]> source.dussan.org Git - jquery.git/commit
Core: Fire iframe script in its context, add doc param in globalEval
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>
Mon, 10 Feb 2020 18:17:22 +0000 (19:17 +0100)
committerGitHub <noreply@github.com>
Mon, 10 Feb 2020 18:17:22 +0000 (19:17 +0100)
commit4592595b478be979141ce35c693dbc6b65647173
tree03020ecb8c12dc18efcdda7987c9d73595ae1202
parent18db87172cffbe48b92e30b70249e304863a70f9
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
src/core.js
src/manipulation.js
src/manipulation/_evalUrl.js
test/data/core/globaleval-context.html [new file with mode: 0644]
test/data/manipulation/set-global-scripttest.js [new file with mode: 0644]
test/data/testinit.js
test/unit/core.js
test/unit/manipulation.js