Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-3854

oam-compress-spaces remove carriage return / line feed in CDATA sections

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.14
    • Fix Version/s: 2.1.15, 2.2.1
    • Component/s: JSR-314
    • Labels:
      None
    • Environment:
      Linux, tomcat 7

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              lu4242 Leonardo Uribe
              Reporter:
              jgoodfe James G
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: