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