[
https://issues.apache.org/jira/browse/FLEX-35213?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Piotr Zarzycki updated FLEX-35213:
----------------------------------
Affects Version/s: (was: Apache FlexJS 0.8.0)
> 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 FalconJX 0.8.0
> Reporter: Piotr Zarzycki
> Assignee: Alex Harui
> Fix For: Apache FlexJS 0.8.0
>
> Attachments: multi_line.png
>
>
> 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)