title: javascript get className
body: <p>Why does:</p>
  
  <pre><code>var isError = document.getElementById('companyName-element').getElementsByTagName('ul');
  console.log(isError);
  </code></pre>
  
  <p>return <code>[ul.errors]</code> in firebug</p>
  
  <p>whereas:</p>
  
  <pre><code>var isError = document.getElementById('companyName-element').getElementsByTagName('ul').className;
  console.log(isError);
  </code></pre>
  
  <p>returns <code>'undefined'.</code></p>
  
  <p>Why doiesnt it return <code>'errors'</code>?</p>