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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.14
    • 2.1.15, 2.2.1
    • JSR-314
    • None
    • 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

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: