title: Can't access the value of HTMLCollection
body: <p>test.html</p>
  
  <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
      &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt;
      &lt;title&gt;Untitled Document&lt;/title&gt;
      &lt;script&gt;
      var eles = document.getElementsByClassName('review');
      console.log(eles);
      console.log(eles.length);
      console.log(eles[0]);
      // for(var i=0, max=eles.length)
      &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div class="review"&gt;&lt;/div&gt;
      &lt;div class="review"&gt;&lt;/div&gt;
      &lt;div class="review"&gt;&lt;/div&gt;
      &lt;div class="review"&gt;&lt;/div&gt;
      &lt;div class="review"&gt;&lt;/div&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p></p>
  
  <p>I checked eles represents HTMLCollenction.</p>
  
  <p><a href="https://developer.mozilla.org/en-US/docs/Web/API/HTMLCollection" rel="noreferrer">Here</a> says HTMLCollection also exposes its members directly as properties by both name and index. </p>
  
  <p>So I tried to debug by console.log(eles.length) and console.log(eles[0]).
  But unfortunately console shows 0 and undefined.(using Google Chrome Tool Developer)</p>
  
  <p>How can I access the result of eles?
  I want to change style and add attribute to the tags gotten by ClassName.
  Plus, I can only use natural Javascript.</p>