[StyleAndScriptIdentifier] Better matching of CDATA-comments
------------------------------------------------------------
Key: WICKET-4453
URL: https://issues.apache.org/jira/browse/WICKET-4453
Project: Wicket
Issue Type: Improvement
Components: wicket
Affects Versions: 1.5.5, 6.0.0
Reporter: Mathias Binder
Attachments: StyleAndScriptIdentifier.patch
The current behavior of the postProcess-method causes double CDATA-comments in
the markup, if a single whitespace appears, e.g: /* <![CDATA[ */
Instead of searching for CDATA-comments in the markup-string, a regex should
match all possible occurrences.
Someting like:
...
String text = body.toString().trim();
if (!text.matches(".*<!\\[CDATA\\[.*"))
...
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira