jindw/xmldom

replaceChild does not fail if oldnode is null.

akayami opened this issue · 0 comments

node.replaceChild(document.createTextNode('a'), null);
node.replaceChild(document.createTextNode('a'), null);

will result in in node having two textNodes with value 'a'.

Each call should fail instead of magically appending.