Revert "Manipulation: support data-URI scripts insertion"

This reverts commit 15f4dec789.
This commit is contained in:
Oleg Gaidarenko 2015-11-13 16:48:03 +03:00
parent bbd453c058
commit ea2f10c104
2 changed files with 0 additions and 10 deletions

View File

@ -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

View File

@ -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( "<script src=\"data:text/javascript,testFoo = 'foo';\"></script>" );
setTimeout(function() {
strictEqual( window[ "testFoo" ], "foo", "data-URI script executed" );
start();
}, 100 );
});