[DOMCore] takeChildNodes() method

2011-01-23 Thread Ralph Ritoch
I would like to submit to you a possible addition to the DOM specification based on discoveries I made while developing a new protocol named XRDOM. Revision: Added that all Attr nodes of decedent nodes are carried to their new location. The addition is a method named takeChildNodes which should

Re: [DOMCore] takeChildNodes() method

2011-01-23 Thread Olli Pettay
Hi, takeChildNodes() could be useful in some cases, but it is already easy to achieve the same without any loops. Something like: var r = document.createRange(); r.selectNodeContents(originalParent); destinationParent.appendChild(r.extractContents()); So since it is already easy to move a group