mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Adjust html parsing in event tests to use jQuery.parseHTML explicitly.
This commit is contained in:
parent
05531fc408
commit
7d61c5238e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user