How can I prevent parameter 1 is not of type 'Node' error?
<p>I am getting the below error message</p>

<pre><code>Uncaught TypeError: Failed to execute 'serializeToString' on 'XMLSerializer': parameter 1 is not of type 'Node'.
</code></pre>

<p>I do no know why it is happening. So could someone maybe point me in the right direction? It works on localhost with mamp... but when I try to use Nodejs to run the server... that is when I get the error. The code in which it is related to is below.</p>

<pre><code>function e(a) {
    var b = c.console || {}, e = b[a] || b.log || H;
    a=!1;
    try {
        a=!!e.apply
    } catch (l) {}
    return a ? function() {
        var a = [];
        return s(arguments, function(b) {
            a.push(d(b))
        }), e.apply(b, a)
    } : function(a, b) {
        e(a, null == b ? "" : b)
    }
}
</code></pre>