I can not understand why I can not get the elements from the HtmlCollection. This code example:
var col = (document.getElementsByClassName("jcrop-holder")); console.log(col);
outputs this output to the console:

I am trying to get the dic.jcrop-holder object, but I cannot get it from the col variable. None of this works:
console.log(col[0]); // undefined console.log(col.item(0)); // null // check length of collection console.log(col.length); // 0
So, if the length is 0, why does the console display a length of 1, as well as objects inside? When I open node, it contains children. What's happening?
Here are a few advanced sites. I did not expand div.jcrop.holder because it is too long. Here are the baby items:

source share