Length of an HTMLObjectCollection is incorrect in Internet Explorer
<p>I have three cells in different rows in a table having same name.e.g.</p>

<pre><code>&lt;td name = "x"&gt;
</code></pre>

<p>is present in 3 different rows.</p>

<p>I am using document.getElementsByName() to obtain a collection of these cells and trying to calculate the length of this collection. e.g.</p>

<pre><code>var obj = doucment.getElementsByName("X");
  var length = obj.length;
</code></pre>

<p>This code works fine in Google Chrome but in IE the length is return as 0(zero).</p>

<p>Can anyone tell me how to sove this problem in IE?</p>
