1.

How Do I Copy An Element From One Place To Another?

Answer»

There's no need for NODE "importing" LIKE there is with DOM. Just CLONE the element being copied and ADD its clone in its new place. You have to clone the element before adding it to its new place because elements may have only one PARENT returned by get Parent ().

newParent.addContent (elt.clone ());

There's no need for node "importing" like there is with DOM. Just clone the element being copied and add its clone in its new place. You have to clone the element before adding it to its new place because elements may have only one parent returned by get Parent ().

newParent.addContent (elt.clone ());



Discussion

No Comment Found