You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Mathias Binder (Updated) (JIRA)" <ji...@apache.org> on 2012/03/15 10:37:38 UTC

[jira] [Updated] (WICKET-4453) [StyleAndScriptIdentifier] Better matching of CDATA-comments

     [ https://issues.apache.org/jira/browse/WICKET-4453?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mathias Binder updated WICKET-4453:
-----------------------------------

    Attachment: StyleAndScriptIdentifier.patch
    
> [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