title: TextNode or textContent?
body: <p>What's the advantage of creating a TextNode and appending it to an HTML element over setting directly its textContent?</p>
  
  <p>Let's say I have a span.</p>
  
  <pre class="lang-js prettyprint-override"><code>var span = document.getElementById('my-span');
  </code></pre>
  
  <p>And I want to change its text. What's the advantage of using :</p>
  
  <pre class="lang-js prettyprint-override"><code>var my_text = document.createTextNode('Hello!');
  span.appendChild(my_text);
  </code></pre>
  
  <p>over</p>
  
  <p><code>span.textContent = 'hello';</code></p>