HOWTO replace "Element.all" for IE11 and previous IE versions.
Please help,
IE11 has come and it changes things atronomically. At the biggest change is the removal of "document.all", which has also replaced using the ".all" collection in an element. As an example, the following script would work on IE10 and previous versions:
var obj = document.getElementById("MyOBJ");
var iCount = obj.all.length;
This no longer works for IE11, and there is no clear cut on how to replace this. The "Element.all" returned a colection of HTML elements, in-order, of how they were appended into the DOM of the parent element. Trying to use "childNodes" returns all nodes, whether HTML elements or not, and as such, is not the same. Trying to use "Element.children" appears to not be a W3C standard, and I'm not sure if it returns only HTML element.
So what do we replace ".all" with to wokr in IE11 and previous IE versions?