From 90fed4b453a5becdb7f173d9e3c1492390a1441f Mon Sep 17 00:00:00 2001 From: Michał Gołębiowski-Owczarek Date: Mon, 16 Mar 2020 21:49:29 +0100 Subject: Manipulation: Make jQuery.htmlPrefilter an identity function Closes gh-4642 --- src/manipulation.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src') 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>" ); + return html; }, clone: function( elem, dataAndEvents, deepDataAndEvents ) { -- cgit v1.2.3