--- /home/cpdev/src/classpath/gnu/xml/dom/html2/DomHTMLElement.java	2005-07-02 21:03:14.000000000 +0000
+++ gnu/xml/dom/html2/DomHTMLElement.java	2005-06-30 05:34:18.000000000 +0000
@@ -76,10 +76,6 @@
           {
             Node attr = attrs.item(i);
             String attrName = attr.getLocalName();
-            if (attrName == null)
-              {
-                attrName = attr.getNodeName();
-              }
             if (attrName.equalsIgnoreCase(name))
               {
                 return attr.getNodeValue();
@@ -125,10 +121,6 @@
       {
         attr = attrs.item(i);
         String attrName = attr.getLocalName();
-        if (attrName == null)
-          {
-            attrName = attr.getNodeName();
-          }
         if (attrName.equalsIgnoreCase(name))
           {
             if (value != null)
@@ -170,12 +162,7 @@
     for (Node parent = getParentNode(); parent != null;
          parent = parent.getParentNode())
       {
-        String parentName = parent.getLocalName();
-        if (parentName == null)
-          {
-              parentName = parent.getNodeName();
-          }
-        if (name.equalsIgnoreCase(parentName))
+        if (name.equalsIgnoreCase(parent.getLocalName()))
           {
             return parent;
           }
@@ -191,12 +178,7 @@
     for (Node child = getFirstChild(); child != null;
          child = child.getNextSibling())
       {
-        String childName = child.getLocalName();
-        if (childName == null)
-          {
-            childName = child.getLocalName();
-          }
-        if (name.equalsIgnoreCase(childName))
+        if (name.equalsIgnoreCase(child.getLocalName()))
           {
             return child;
           }
