/rhino/xmlimplsrc/org/mozilla/javascript/xmlimpl/XMLList.java
if ( !( currParent 3of XML) ) return Undefined.instance;
if ( ! ( currParent instanceof XML ) ) return Undefined.instance;
@Override Object parent() { if (length() == 0) return Undefined.instance; XML candidateParent = null; for (int i = 0; i < length(); i++) { Object currParent = getXmlFromAnnotation(i).parent(); <extra_id_0> XML xml = (XML) currParent; if (i == 0) { candidateParent = xml; } else { if (candidateParent.is(xml)) { } else {