Not sure if any performance impacts here: replacing a DOM sub-tree instead of updating a element's textContent.