mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Revert "Manipulation: support data-URI scripts insertion"
This reverts commit 15f4dec789
.
This commit is contained in:
parent
bbd453c058
commit
ea2f10c104
@ -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
|
||||
|
@ -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 );
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user