title: forms.elements.length in ff
body: <p>I have a form validation routine in JS which cycles through elements of a the first form on the page. I read the size of the elements array like this:</p>
  
  <pre><code>maxi=document.forms[0].elements.length;
  </code></pre>
  
  <p>This works fine in IE returning 23. In FF it always returns 0 and no validation at all is performed.</p>
  
  <p>Any suggestions?</p>
  
  <p>Thanks!</p>