title: element.firstChild is returning '<TextNode ...' instead of an Object in FF
body: <p>I wrote a tab system using some very basic Javascript and it runs like a champ in IE 8 but, in FireFox 3 I am coming up short.  The pertitent HTML is as follows:</p>
  
  <pre><code>            &lt;div id="tabs"&gt;
                  &lt;ul class="tabs"&gt;
                      &lt;li class="current"&gt;&lt;a&gt;&lt;span&gt;News&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;a&gt;&lt;span&gt;Videos&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;a&gt;&lt;span&gt;Photos&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
                      &lt;li&gt;&lt;a&gt;&lt;span&gt;Twitter&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
                  &lt;/ul&gt;
              &lt;/div&gt;
  </code></pre>
  
  <p>Then, on page load, I get dropped into this method:</p>
  
  <pre><code>function processTabs(TabContainer, PageContainer, Index) {
  var tabContainer = document.getElementById(TabContainer);
  var tabs = tabContainer.firstChild;
  
  var tab = tabs.firstChild;
  var i = 0;
  .... more code }
  </code></pre>
  
  <p>The rest of the code does not matter at this point because it never gets called.  tabContainer is set properly to reference the div with the ID tabs. Now, in Internet Explorer when I call tabContainer.firstChild the variable 'tabs' is referencing my UL and then the call var tab = tabs.firstChild; references my first LI.   The problem is that when I call tabContainer.firstChild Venkman is telling me it is returning .  So firefox is reading my newlines as actual children inside the div's! My UL is actually the second child in the childNodes collection!</p>
  
  <p>Is there any way to fix this?</p>
  
  <p>Thanks!</p>