flex-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alex Harui (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLEX-33313) Cannot append child to xml
Date Sat, 26 Oct 2013 04:10:30 GMT

    [ https://issues.apache.org/jira/browse/FLEX-33313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13805992#comment-13805992

Alex Harui commented on FLEX-33313:

Apache Flex will let you choose older player/swf versions as the default.  You may want to
try setting your 4.10 or 4.11 release to whatever was the player/swf version for 4.5 and see
if you get the desired but "incorrect" behavior.  However, it might be that your code was
simply relying on a bug that was fixed in the player.

> Cannot append child to xml
> --------------------------
>                 Key: FLEX-33313
>                 URL: https://issues.apache.org/jira/browse/FLEX-33313
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: .Unspecified - Framework
>    Affects Versions: Adobe Flex SDK 3.2 (Release), Adobe Flex SDK 3.3 (Release), Adobe
Flex SDK 4.6 (Release)
>            Reporter: Curtis Aube
> var xml1:XML = <node><childnode/></node>;
> var xml2:XML = <node/>;
> xml2.appendChild(xml1.childnode[0]);
> xml1.appendChild(<newnode/>);
> trace(xml1.toXMLString());
> Output:
> <node>
>   <childnode/>
> </node>
> Expected Output:
> <node>
>   <childnode/>
>   <newnode/>
> </node>
> Workaround:
> Make a copy of the childnode and append the copy to the second xml node.
> or
> Remove the childnode before appending it to the second xml node.
> Additional notes:
> When you hit this bug, it is very hard to debug since there is no apparent reason it
is happening and no stack traces. Another solution to this problem may be to just throw a
stack trace when you try to append the same xml to two different xml parents, so that it's
easier to find and fix the problem.

This message was sent by Atlassian JIRA

View raw message