Author: vbaranov
Date: 2008-05-07 06:40:13 -0400 (Wed, 07 May 2008)
New Revision: 8469
Modified:
trunk/framework/impl/src/main/javascript/prototype/prototype1.6.0.js
Log:
http://jira.jboss.com/jira/browse/RF-3290
Modified: trunk/framework/impl/src/main/javascript/prototype/prototype1.6.0.js
===================================================================
--- trunk/framework/impl/src/main/javascript/prototype/prototype1.6.0.js 2008-05-07
10:40:00 UTC (rev 8468)
+++ trunk/framework/impl/src/main/javascript/prototype/prototype1.6.0.js 2008-05-07
10:40:13 UTC (rev 8469)
@@ -387,7 +387,9 @@
var matchAll = new RegExp(Prototype.ScriptFragment, 'img');
var matchOne = new RegExp(Prototype.ScriptFragment, 'im');
return (this.match(matchAll) || []).map(function(scriptTag) {
- return (scriptTag.match(matchOne) || ['', ''])[1];
+ var result = (scriptTag.match(matchOne) || ['', ''])[1];
+ result =
result.replace(/</,"<").replace(/\s*<!--[^\r\n]*/,
"");
+ return result;
});
},