Why is my new element wrapped in an array?
<p>Why is my new element wrapped in an array?</p>

<pre><code>$('&lt;a&gt;')
[&lt;a&gt;​&lt;/a&gt;​]
</code></pre>

<p>When I try to use it with <code>appendChild</code> I get a dom exception 8 error.</p>

<p>Edit: That was an example. My exact code is </p>

<pre><code>addendum = $("&lt;a&gt;", {href: download_url, text:"Download .nupkg file"})
badge = $(".nuget-badge")[0]
badge.appendChild(addendum)
</code></pre>
