Searching for childNodes returns undefined
<p>I have this in my html page:</p>

<pre><code>&lt;nav&gt;
    &lt;a&gt;&lt;/a&gt;
    &lt;a&gt;&lt;/a&gt;
&lt;/nav&gt;
</code></pre>

<p>but when I run <code>var menuitem = document.getElementsByTagName('nav').childNodes;</code>
it returns "undefined".</p>

<p>Here is the entire javascript file with the relevant part at the end: <a href="http://pastebin.com/bVj2Ug4e" rel="nofollow">http://pastebin.com/bVj2Ug4e</a></p>

<p>What did I do wrong?</p>

<p>Thanks for the help guys!</p>
