diff options
author | Timmy Willison <timmywillisn@gmail.com> | 2012-12-13 15:52:59 -0500 |
---|---|---|
committer | Timmy Willison <timmywillisn@gmail.com> | 2012-12-13 15:52:59 -0500 |
commit | 7d61c5238e57cf252faa2d999465bd69afc6c038 (patch) | |
tree | 7a2dc8bd0bf302488ad0a3b29de49af6b1fc94dc | |
parent | 05531fc4080ae24070930d15ae0cea7ae056457d (diff) | |
download | jquery-7d61c5238e57cf252faa2d999465bd69afc6c038.tar.gz jquery-7d61c5238e57cf252faa2d999465bd69afc6c038.zip |
Adjust html parsing in event tests to use jQuery.parseHTML explicitly.
-rw-r--r-- | test/unit/event.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/event.js b/test/unit/event.js index b5ad26d85..50328be40 100644 --- a/test/unit/event.js +++ b/test/unit/event.js @@ -1052,7 +1052,7 @@ test("trigger(type, [data], [fn])", function() { form.remove(); }); -test( "submit event bubbles on copied forms (#11649)", function(){ +test( "submit event bubbles on copied forms (#11649)", function() { expect( 3 ); var $formByClone, $formByHTML, @@ -1076,7 +1076,7 @@ test( "submit event bubbles on copied forms (#11649)", function(){ // Copy the form via .clone() and .html() $formByClone = $testForm.clone( true, true ).removeAttr("id"); - $formByHTML = jQuery( $fixture.html() ).filter("#testForm").removeAttr("id"); + $formByHTML = jQuery( jQuery.parseHTML($fixture.html()) ).filter("#testForm").removeAttr("id"); $wrapperDiv.append( $formByClone, $formByHTML ); // Check submit bubbling on the copied forms @@ -1109,7 +1109,7 @@ test( "change event bubbles on copied forms (#11796)", function(){ // Copy the form via .clone() and .html() $formByClone = $form.clone( true, true ).removeAttr("id"); - $formByHTML = jQuery( $fixture.html() ).filter("#form").removeAttr("id"); + $formByHTML = jQuery( jQuery.parseHTML($fixture.html()) ).filter("#form").removeAttr("id"); $wrapperDiv.append( $formByClone, $formByHTML ); // Check change bubbling on the copied forms |