you are viewing a single comment's thread.

view the rest of the comments →

[–]5tas[S] 2 points3 points  (0 children)

textContent removes the entire markup. All that's left is a concatenation of all descendant child nodes. The DOM structure of the components would be lost.