Using .append() with a plain text argument currently uses string concatenation on the element's innerHTML, which can cause any events bound on child elements to stop working.
Instead of replacing the element's innerHTML, a document fragment should be used.
Using
.append()
with a plain text argument currently uses string concatenation on the element's innerHTML, which can cause any events bound on child elements to stop working.Instead of replacing the element's innerHTML, a document fragment should be used.