Should I use innerhtml or nodevlue to change an element?, I see that both get the same result and in my opinion innerhtml is much simpler, should I use this?
Should I use innerhtml or nodevlue to change an element?, I see that both get the same result and in my opinion innerhtml is much simpler, should I use this?
According to the user @jtbandes of the English site:
by referring to the article link :
If the element has no subelements, only text, then (usually) has a secondary node, which is accessed as ElemRef.childNodes [0]. In such a precise case, the standard of standards W3C web of ElemRef.innerText is ElemRef.childNodes [0] .nodeValue.