aboutsummaryrefslogtreecommitdiffstats
path: root/src/manipulation.js
diff options
context:
space:
mode:
authorjaubourg <j@ubourg.net>2012-05-06 01:27:01 +0200
committerjaubourg <j@ubourg.net>2012-05-06 01:27:01 +0200
commita743be19bd3622071c22e9874c92024bc3f5367a (patch)
tree58a0553535bfd524dffc94d9294a2954cdba2647 /src/manipulation.js
parente3cf0e220c6cfaac18642f3d4db96698ea601791 (diff)
downloadjquery-a743be19bd3622071c22e9874c92024bc3f5367a.tar.gz
jquery-a743be19bd3622071c22e9874c92024bc3f5367a.zip
Fixes #11402. domManip now also removes the closing part of HTML comments or CDATA surrounding executed scripts. Unit tests added.
Diffstat (limited to 'src/manipulation.js')
-rw-r--r--src/manipulation.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/manipulation.js b/src/manipulation.js
index cc6acee82..888c9f33c 100644
--- a/src/manipulation.js
+++ b/src/manipulation.js
@@ -29,7 +29,7 @@ var nodeNames = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figca
// checked="checked" or checked
rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,
rscriptType = /\/(java|ecma)script/i,
- rcleanScript = /^\s*<!(?:\[CDATA\[|\-\-)/,
+ rcleanScript = /^\s*<!(?:\[CDATA\[|\-\-)|[\]\-]{2}>\s*$/g,
wrapMap = {
option: [ 1, "<select multiple='multiple'>", "</select>" ],
legend: [ 1, "<fieldset>", "</fieldset>" ],