From ea2f10c104e4cf3ada1c0da12ebf4fac0d2801ca Mon Sep 17 00:00:00 2001 From: Oleg Gaidarenko Date: Fri, 13 Nov 2015 16:48:03 +0300 Subject: [PATCH] Revert "Manipulation: support data-URI scripts insertion" This reverts commit 15f4dec7894f1e00adbfb9bce4f870441a527bd6. --- src/manipulation/_evalUrl.js | 1 - test/unit/manipulation.js | 9 --------- 2 files changed, 10 deletions(-) diff --git a/src/manipulation/_evalUrl.js b/src/manipulation/_evalUrl.js index 572fe30c7..85ca2c62a 100644 --- a/src/manipulation/_evalUrl.js +++ b/src/manipulation/_evalUrl.js @@ -9,7 +9,6 @@ jQuery._evalUrl = function( url ) { // Make this explicit, since user can override this through ajaxSetup (#11264) type: "GET", dataType: "script", - cache: true, async: false, global: false, "throws": true diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js index 492390adf..2069ee5c5 100644 --- a/test/unit/manipulation.js +++ b/test/unit/manipulation.js @@ -2678,12 +2678,3 @@ QUnit.test( "Make sure col element is appended correctly", function( assert ) { assert.strictEqual( table.find( "td" ).width(), 150 ); } ); - -asyncTest( "Insert script with data-URI (gh-1887)", 1, function() { - Globals.register( "testFoo" ); - jQuery( "#qunit-fixture" ).append( "" ); - setTimeout(function() { - strictEqual( window[ "testFoo" ], "foo", "data-URI script executed" ); - start(); - }, 100 ); -}); -- 2.39.5