File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -509,7 +509,7 @@ test("XSS via location.hash", function() {
509
509
delete jQuery . _check9521 ;
510
510
} ;
511
511
512
- var $eCheck9521 = jQuery ( '#<img id="check9521" src="no-such-.gif" onerror="jQuery._check9521(false)"> ' ) ;
512
+ var $eCheck9521 = jQuery ( '#<img id="check9521" src="no-such-.gif" onerror="jQuery._check9521(false)"' ) ;
513
513
514
514
if ( $eCheck9521 . length ) {
515
515
$eCheck9521 . appendTo ( "#main" ) ;
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ test("css(String|Hash)", function() {
23
23
equals ( div . css ( "width" ) , "4px" , "Width on disconnected node." ) ;
24
24
equals ( div . css ( "height" ) , "4px" , "Height on disconnected node." ) ;
25
25
26
- var div2 = jQuery ( "<div style='display:none;'><input type='text' style='height:20px;'/><textarea style='height:20px;'/ ><div style='height:20px;'></div></div>" ) . appendTo ( "body" ) ;
26
+ var div2 = jQuery ( "<div style='display:none;'><input type='text' style='height:20px;'/><textarea style='height:20px;'></textarea ><div style='height:20px;'></div></div>" ) . appendTo ( "body" ) ;
27
27
28
28
equals ( div2 . find ( "input" ) . css ( "height" ) , "20px" , "Height on hidden input." ) ;
29
29
equals ( div2 . find ( "textarea" ) . css ( "height" ) , "20px" , "Height on hidden textarea." ) ;
Original file line number Diff line number Diff line change @@ -904,7 +904,7 @@ var testHtml = function(valueObj) {
904
904
}
905
905
ok ( pass , "Set HTML" ) ;
906
906
907
- div = jQuery ( "<div/ >" ) . html ( valueObj ( ' <div id=" parent_1" ><div id=" child_1"/ ></div><div id=" parent_2"/>' ) ) ;
907
+ div = jQuery ( "<div>" ) . html ( valueObj ( " <div id=' parent_1' ><div id=' child_1'></div ></div><div id=' parent_2'></div>" ) ) ;
908
908
909
909
equals ( div . children ( ) . length , 2 , "Make sure two child nodes exist." ) ;
910
910
equals ( div . children ( ) . children ( ) . length , 1 , "Make sure that a grandchild exists." ) ;
You can’t perform that action at this time.
0 commit comments