--- /home/cpdev/src/classpath/gnu/xml/dom/html2/DomHTMLCollection.java	2005-07-02 21:03:14.000000000 +0000
+++ gnu/xml/dom/html2/DomHTMLCollection.java	2005-06-30 05:34:18.000000000 +0000
@@ -99,12 +99,7 @@
       {
         return NodeFilter.FILTER_SKIP;
       }
-    String localName = n.getLocalName();
-    if (localName == null)
-      {
-        localName = n.getNodeName();
-      }
-    if (nodeNames != null && !acceptName(localName))
+    if (nodeNames != null && !acceptName(n.getLocalName()))
       {
         return NodeFilter.FILTER_SKIP;
       }
@@ -157,10 +152,6 @@
       {
         Node attr = attrs.item(i);
         String attrName = attr.getLocalName();
-        if (attrName == null)
-          {
-            attrName = attr.getNodeName();
-          }
         if (name.equalsIgnoreCase(attrName))
           {
             return attr;
