• Dave Cridland's avatar
    OF-1271 Copy elements correctly · df106421
    Dave Cridland authored
    Adding elements and attributes to the new element doesn't work, since reparenting the old elements generates an exception. This exception wasn't logged.
    
    * Exception logged
    * id attribute copied, if present.
    * Elements copied deeply/properly.
    
    Test stanza:
    
    ```
    <message xmlns="jabber:client" to="blah@conference.cridland.im" type="groupchat" id="5260">
    <body>This is a message with a label.</body>
    <custom xmlns='tmp:custom'/>
    <custom-attr xmlns='tmp:custom2' attr='value'/>
    <custom-child xmlns='tmp:custom3'>
    <child>element</child>
    </custom-child>
    <custom-text xmlns='tmp:custom4'>Text here</custom-text>
    </message>
    ```
    df106421
Name
Last commit
Last update
build Loading commit data...
documentation Loading commit data...
src Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
LICENSE.txt Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...