aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/manipulation.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/manipulation.js b/src/manipulation.js
index f86bd9ab0..19c60fcbc 100644
--- a/src/manipulation.js
+++ b/src/manipulation.js
@@ -25,9 +25,7 @@ var
// Support: IE <=10 - 11+
// In IE using regex groups here causes severe slowdowns.
- rnoInnerhtml = /<script|<style|<link/i,
-
- rcleanScript = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;
+ rnoInnerhtml = /<script|<style|<link/i;
// Prefer a tbody over its parent table for containing new rows
function manipulationTarget( elem, content ) {
@@ -161,7 +159,7 @@ function domManip( collection, args, callback, ignored ) {
}, doc );
}
} else {
- DOMEval( node.textContent.replace( rcleanScript, "" ), node, doc );
+ DOMEval( node.textContent, node, doc );
}
}
}