flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Piotr Zarzycki (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLEX-35213) Assigned multi line CDATA section to InnerHtml bead causes exception
Date Mon, 12 Dec 2016 07:39:59 GMT
Piotr Zarzycki created FLEX-35213:
-------------------------------------

             Summary: Assigned multi line CDATA section to InnerHtml bead causes exception
                 Key: FLEX-35213
                 URL: https://issues.apache.org/jira/browse/FLEX-35213
             Project: Apache Flex
          Issue Type: Bug
          Components: FlexJS
    Affects Versions: Apache FlexJS 0.8.0, Apache FalconJX 0.8.0
            Reporter: Piotr Zarzycki


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

In MDL example application following code:

{code:xml}
<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>
{code}

Causes an exception:

{code}
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
{code}

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



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message