replaceChild does not fail if oldnode is null.
akayami opened this issue · 0 comments
akayami commented
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.