Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-35213

Assigned multi line CDATA section to InnerHtml bead causes exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • Apache FalconJX 0.8.0
    • Apache FlexJS 0.8.0
    • FlexJS
    • None

    Description

      Assigned multi line CDATA to InnerHtml causes exception in compiled version of application.

      In MDL example application following code:

      <mdl:CardSupportingText>
          <js:beads>
             <js:InnerHTML>
                    <![CDATA[
                                      Lorem ipsum dolor sit <b>amet</b>, consectetur <i>adipiscing elit</i>. Mauris sagittis pellentesque lacus eleifend lacinia...
                                  ]]>
             </js:InnerHTML>
          </js:beads>
      </mdl:CardSupportingText>
      

      Causes an exception:

      Cards.js:253 Uncaught SyntaxError: Invalid or unexpected token
      MainNavigation.js:613 Uncaught ReferenceError: Cards is not defined
          at MainNavigation.get (MainNavigation.js:613)
          at MainNavigation.org.apache.flex.core.ContainerBase.addedToParent (ContainerBase.js:173)
          at App.org.apache.flex.core.Application.addElement (Application.js:155)
          at App.org.apache.flex.core.Application.initialize (Application.js:69)
          at App.org.apache.flex.core.Application.start (Application.js:279)
          at index.html:227
      

      In the attached screenshot I see that after compile CDATA section couple of "/n" has been added.

      Attachments

        1. multi_line.png
          32 kB
          Piotr Zarzycki

        Activity

          People

            aharui Alex Harui
            pete21 Piotr Zarzycki
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: