Fixes #11402. domManip now also removes the closing part of HTML comments or CDATA surrounding executed scripts. Unit tests added.

This commit is contained in:
jaubourg
2012-05-06 01:27:01 +02:00
parent e3cf0e220c
commit a743be19bd
3 changed files with 19 additions and 1 deletions

View File

@@ -2467,6 +2467,14 @@ test( "jQuery.domManip - no side effect because of ajaxSetup or global events (#
});
});
test( "jQuery.domManip - script in comments are properly evaluated (#11402)", function() {
expect( 2 );
stop();
jQuery( "#qunit-fixture" ).load( "data/cleanScript.html", function() {
start();
});
});
test("jQuery.ajax - active counter", function() {
ok( jQuery.active == 0, "ajax active counter should be zero: " + jQuery.active );
});