add replaceChild
Fix node parsing