title: JavaScript: document.createNode or plain html?
body: <p>Is it better to use </p>
  
  <pre class="lang-js prettyprint-override"><code>document.createNode();
  </code></pre>
  
  <p>or plain text like</p>
  
  <pre class="lang-js prettyprint-override"><code>var foo = '&lt;div&gt; bar &lt;/div&gt;';
  </code></pre>
  
  <p>to create HTML markup with JavaScript?</p>