[
https://wso2.org/jira/browse/MASHUP-754?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Yumani Ranaweera closed MASHUP-754.
-----------------------------------
Estimated Complexity: Advanced
Verified. Closed.
> E4X appendChild does not work as expected
> -----------------------------------------
>
> Key: MASHUP-754
> URL: https://wso2.org/jira/browse/MASHUP-754
> Project: WSO2 Mashup Server
> Issue Type: Bug
> Reporter: Keith Godwin Chapman
> Assignee: Keith Godwin Chapman
> Priority: Critical
> Fix For: 1.1
>
>
> function appendChild(){
> var test = <item><item1/></item>;
> test.appendChild(<item0/>);
> return test;
> }
> gives this output:
> <item><item0/></item>
> when I expect
> <item><item1/><item0/></item>
> Stringely the following wprks though
> function appendChild(){
> var test = <item><item1/></item>;
> test.appendChild(<item0/>);
> print(test.toXMLString();
> return test;
> }
> building the element seems to solve the issue.
> What am I doing wrong?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://wso2.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
Mashup-dev mailing list
[email protected]
http://www.wso2.org/cgi-bin/mailman/listinfo/mashup-dev