diff options
author | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2020-03-16 21:49:29 +0100 |
---|---|---|
committer | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2020-03-16 21:59:49 +0100 |
commit | 1d61fd9407e6fbe82fe55cb0b938307aa0791f77 (patch) | |
tree | 514dc05aec89b38336127f464dc4c65ca15e1deb /src | |
parent | 04bf577e2f961c9dde85ddadc77f71bc7bc671cc (diff) | |
download | jquery-1d61fd9407e6fbe82fe55cb0b938307aa0791f77.tar.gz jquery-1d61fd9407e6fbe82fe55cb0b938307aa0791f77.zip |
Manipulation: Make jQuery.htmlPrefilter an identity function
Closes gh-4642
(cherry picked from 90fed4b453a5becdb7f173d9e3c1492390a1441f)
Diffstat (limited to 'src')
-rw-r--r-- | src/manipulation.js | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/manipulation.js b/src/manipulation.js index 017345afb..dec21ea0b 100644 --- a/src/manipulation.js +++ b/src/manipulation.js @@ -33,13 +33,6 @@ define( [ var - /* eslint-disable max-len */ - - // 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, - - /* eslint-enable */ - // 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/ @@ -236,7 +229,7 @@ function remove( elem, selector, keepData ) { jQuery.extend( { htmlPrefilter: function( html ) { - return html.replace( rxhtmlTag, "<$1></$2>" ); + return html; }, clone: function( elem, dataAndEvents, deepDataAndEvents ) { |