Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
Apache FalconJX 0.8.0
-
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.