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 );
-});
+// IE8 doesn't support data-URI in src attribute of script element
+// Relevant - http://msdn.microsoft.com/en-us/library/cc848897(v=vs.85).aspx
+if ( !/msie 8\.0/i.test( navigator.userAgent ) ) {
+ 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 );
+ });
+}