]> source.dussan.org Git - jquery.git/commitdiff
Revert "Manipulation: support data-URI scripts insertion"
authorOleg Gaidarenko <markelog@gmail.com>
Fri, 13 Nov 2015 13:48:03 +0000 (16:48 +0300)
committerOleg Gaidarenko <markelog@gmail.com>
Fri, 13 Nov 2015 17:04:24 +0000 (20:04 +0300)
This reverts commit 15f4dec7894f1e00adbfb9bce4f870441a527bd6.

src/manipulation/_evalUrl.js
test/unit/manipulation.js

index 572fe30c71479738d176cb3134bdafcead890cfe..85ca2c62a472338963deb8b39f1d73bc8dbe5a4f 100644 (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
index 492390adf1b16d949a856436fad7cea0a60a5efe..2069ee5c50c8e7751f5513b40abcd222491cf3ec 100644 (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 );
-});