aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2020-03-16 21:49:29 +0100
committerGitHub <noreply@github.com>2020-03-16 21:49:29 +0100
commit90fed4b453a5becdb7f173d9e3c1492390a1441f (patch)
tree1415e8746489af4d26b31b422cb9b3db95497cb2 /src
parent5b94a4f847fe2328b1b8f2340b11b6031f95d2d1 (diff)
downloadjquery-90fed4b453a5becdb7f173d9e3c1492390a1441f.tar.gz
jquery-90fed4b453a5becdb7f173d9e3c1492390a1441f.zip
Manipulation: Make jQuery.htmlPrefilter an identity function
Closes gh-4642
Diffstat (limited to 'src')
-rw-r--r--src/manipulation.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/manipulation.js b/src/manipulation.js
index 9ad36a20a..8eca61add 100644
--- a/src/manipulation.js
+++ b/src/manipulation.js
@@ -23,9 +23,6 @@ import "./event.js";
var
- // See https://github.com/eslint/eslint/issues/3229
- rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,
-
// Support: IE <=10 - 11+, Edge 12 - 13 only
// In IE/Edge using regex groups here causes severe slowdowns.
// See https://connect.microsoft.com/IE/feedback/details/1736512/
@@ -198,7 +195,7 @@ function remove( elem, selector, keepData ) {
jQuery.extend( {
htmlPrefilter: function( html ) {
- return html.replace( rxhtmlTag, "<$1></$2>" );
+ return html;
},
clone: function( elem, dataAndEvents, deepDataAndEvents ) {