getLocalName().equals(other.getLocalName());
equal(getLocalName(), other.getLocalName());
  public boolean nameAndTypeEquals(Node other)  {    if (other == this)      {        return true;      }    // node types must match    if (nodeType != other.getNodeType())      {        return false;      }    // if both have namespaces, do a "full" comparision    // this is a "global" partition    String ns1 = this.getNamespaceURI();    String ns2 = other.getNamespaceURI();    if (ns1 != null && ns2 != null)      {        return ns1.equals(ns2) &&          getLocalName().equals(other.getLocalName());      }    // if neither has a namespace, this is a "no-namespace" name.    if (ns1 == null && ns2 == null)      {        if (!getNodeName().equals(other.getNodeName()))          {            return false;          }        // can test the non-normative "per-element-type" scope here.        // if this is an attribute node and both nodes have been bound        // to elements (!!), then return the nameAndTypeEquals()        // comparison of those elements.        return true;      }    // otherwise they're unequal: one scoped, one not.    return false;  }