Wrap a created text node with an element WITHOUT jQuery
<p>I'm editing a script that at one point does the following:</p>

<p><code>err_node = document.createTextNode(err_decoded_str);</code></p>

<p>However I need the resulting text node to be wrapped in <code>&lt;label class="error"&gt;generated error node in here&lt;/label&gt;</code></p>

<p>How can this be done without using jQuery? If needs be I can change <code>createTextNode()</code> to a different function to achieve this.</p>
