You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org> on 2014/02/18 04:14:19 UTC

[jira] [Resolved] (MYFACES-3854) oam-compress-spaces remove carriage return / line feed in CDATA sections

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

Leonardo Uribe resolved MYFACES-3854.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.2.1
                   2.1.15
         Assignee: Leonardo Uribe

> oam-compress-spaces remove carriage return / line feed in CDATA sections
> ------------------------------------------------------------------------
>
>                 Key: MYFACES-3854
>                 URL: https://issues.apache.org/jira/browse/MYFACES-3854
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: JSR-314
>    Affects Versions: 2.1.14
>         Environment: Linux, tomcat 7
>            Reporter: James G
>            Assignee: Leonardo Uribe
>             Fix For: 2.1.15, 2.2.1
>
>
> When the "oam-compress-spaces" option removes spaces in a CDATA section it can cause problems with the generated code.  For example, I sometimes do:
> <script type="text/javascript">
> //<![CDATA[
> someJavascript();
> //]]>
> </script>
> If there happens to be a space after //<![CDATA[, then it comes out:
> <script type="text/javascript">
> //<![CDATA[ someJavascript();
> //]]></script>
> so someJavascript() is not called by the browser.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)