File tree Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -953,13 +953,6 @@ jQuery.extend({
953
953
954
954
// Convert html string into DOM nodes
955
955
if ( typeof elem == "string" ) {
956
- // Fix "XHTML"-style tags in all browsers
957
- elem = elem . replace ( / ( < ( \w + ) [ ^ > ] * ?) \/ > / g, function ( all , front , tag ) {
958
- return tag . match ( / ^ ( a b b r | b r | c o l | i m g | i n p u t | l i n k | m e t a | p a r a m | h r | a r e a | e m b e d ) $ / i) ?
959
- all :
960
- front + "></" + tag + ">" ;
961
- } ) ;
962
-
963
956
// Trim whitespace, otherwise indexOf won't work as expected
964
957
var tags = jQuery . trim ( elem ) . toLowerCase ( ) , div = context . createElement ( "div" ) ;
965
958
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ test("$()", function() {
39
39
equals ( code . length , 1 , "Correct number of elements generated for code" ) ;
40
40
var img = $ ( "<img/>" ) ;
41
41
equals ( img . length , 1 , "Correct number of elements generated for img" ) ;
42
- var div = $ ( "<div/ ><hr/ ><code/ ><b/ >" ) ;
42
+ var div = $ ( "<div></div ><hr><code></code ><b></b >" ) ;
43
43
equals ( div . length , 4 , "Correct number of elements generated for div hr code b" ) ;
44
44
45
45
// can actually yield more than one, when iframes are included, the window is an array as well
You can’t perform that action at this time.
0 commit comments