From: Oleg Gaidarenko Date: Fri, 13 Nov 2015 13:48:03 +0000 (+0300) Subject: Revert "Manipulation: support data-URI scripts insertion" X-Git-Tag: 2.2.0~32 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ea2f10c104e4cf3ada1c0da12ebf4fac0d2801ca;p=jquery.git Revert "Manipulation: support data-URI scripts insertion" This reverts commit 15f4dec7894f1e00adbfb9bce4f870441a527bd6. --- 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 ); -});