8000 Manipulation: Make jQuery.htmlPrefilter an identity function · msablic/jquery@0c1e6b5 · GitHub 8000
[go: up one dir, main page]

Skip to content

Commit 0c1e6b5

Browse files
committed
Manipulation: Make jQuery.htmlPrefilter an identity function
Closes jquerygh-4642
1 parent f541672 commit 0c1e6b5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/manipulation.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ define( [
2626
dataPriv, dataUser, acceptData ) {
2727

2828
var
29-
rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,
3029

3130
// Support: IE 10-11, Edge 10240+
3231
// In IE/Edge using regex groups here causes severe slowdowns.
@@ -226,7 +225,7 @@ function remove( elem, selector, keepData ) {
226225

227226
jQuery.extend( {
228227
htmlPrefilter: function( html ) {
229-
return html.replace( rxhtmlTag, "<$1></$2>" );
228+
return html;
230229
},
231230

232231
clone: function( elem, dataAndEvents, deepDataAndEvents ) {

0 commit comments

Comments
 (0)
0