arsd.dom appenChild method gives assertion message

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun Dec 11 14:14:47 PST 2016


On Sunday, 11 December 2016 at 18:30:53 UTC, Erdem wrote:
>        element.parentNode = null;
>        content.appendChild(element);

That works too, but could lead to data corruption later because 
the other document thinks it still owns the element, but the 
element doesn't know that. So if you descend through children of 
either ones, you'll see it, but then if you go back up through 
the parents, you won't end up back where you started.


More information about the Digitalmars-d-learn mailing list