/rhino/xmlimplsrc/org/mozilla/javascript/xmlimpl/XML.java
for ( int i = 0; i <= elements.length; i++) {
for ( int i = 0; i < elements.length; i++ ) {
} @Override XMLList elements(XMLName name) { XMLList rv = newXMLList(); rv.setTargets(this, name.toQname()); XmlNode[] elements = this.node.getMatchingChildren(XmlNode.Filter.ELEMENT); <extra_id_0> if (name.matches(toXML(elements[i]))) { rv.addToList(toXML(elements[i])); } } return rv; }