What is the difference between innerHTML, innerText and childNodes[].value in JavaScript?
innerHTML
innerText
childNodes[].value
In terms of MutationObservers, setting innerHTML generates a childList mutation due to the browsers removing the node and then adding a new node with the value of innerHTML.
MutationObservers
childList
If you set innerText, a characterData mutation is generated.
characterData