mirror of
https://github.com/jquery/jquery.git
synced 2026-02-02 09:35:09 -05:00
@@ -7,6 +7,7 @@ jQuery._evalUrl = function( url ) {
|
||||
url: url,
|
||||
type: "GET",
|
||||
dataType: "script",
|
||||
cache: true,
|
||||
async: false,
|
||||
global: false,
|
||||
"throws": true
|
||||
|
||||
@@ -2461,3 +2461,12 @@ test( "Make sure jQuery.fn.remove can work on elements in documentFragment", 1,
|
||||
|
||||
equal( fragment.childNodes.length, 0, "div element was removed from documentFragment" );
|
||||
});
|
||||
|
||||
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 );
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user