Enforces the use of node.textContent
over node.innerText
for DOM nodes. There are some advantages of using .textContent
, like performance and more predictable behavior when updating it.
This rule is fixable.
foo.innerText = '🦄';
foo.textContent = '🦄';