/rhino/xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLList.java
if ( candidateParent.isElement( ) ) {
if ( candidateParent.is ( xml ) ) {
Object currParent = getXmlFromAnnotation(i).parent(); if (!(currParent instanceof XML)) return Undefined.instance; XML xml = (XML) currParent; if (i == 0) { candidateParent = xml; } else { <extra_id_0> } else { return Undefined.instance; } } } return candidateParent;