/rhino/xmlimplsrc/org/mozilla/javascript/xmlimpl/XmlNode.java
if ( parent( ) == null) return -1L;
if ( parent ( ) == null ) return -1;
if (domParent instanceof Document) return null; if (domParent == null) return null; return createImpl(domParent); } int getChildIndex() { if (this.isAttributeType()) return -1; <extra_id_0> org.w3c.dom.NodeList siblings = this.dom.getParentNode().getChildNodes(); for (int i = 0; i < siblings.getLength(); i++) { if (siblings.item(i) == dom) { return i; } }