Skip to content

Commit ea2f10c

Browse files
committed
Revert "Manipulation: support data-URI scripts insertion"
This reverts commit 15f4dec.
1 parent bbd453c commit ea2f10c

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

src/manipulation/_evalUrl.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ jQuery._evalUrl = function( url ) {
99
// Make this explicit, since user can override this through ajaxSetup (#11264)
1010
type: "GET",
1111
dataType: "script",
12-
cache: true,
1312
async: false,
1413
global: false,
1514
"throws": true

test/unit/manipulation.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2678,12 +2678,3 @@ QUnit.test( "Make sure col element is appended correctly", function( assert ) {
26782678

26792679
assert.strictEqual( table.find( "td" ).width(), 150 );
26802680
} );
2681-
2682-
asyncTest( "Insert script with data-URI (gh-1887)", 1, function() {
2683-
Globals.register( "testFoo" );
2684-
jQuery( "#qunit-fixture" ).append( "<script src=\"data:text/javascript,testFoo = 'foo';\"></script>" );
2685-
setTimeout(function() {
2686-
strictEqual( window[ "testFoo" ], "foo", "data-URI script executed" );
2687-
start();
2688-
}, 100 );
2689-
});

0 commit comments

Comments
 (0)