You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by le...@apache.org on 2002/01/26 01:35:01 UTC

cvs commit: xml-xerces/java/src/org/apache/xerces/dom ElementImpl.java

lehors      02/01/25 16:35:01

  Modified:    java/src/org/apache/xerces/dom ElementImpl.java
  Log:
  DOM WG decided that for consistency with cloneNode, isEqualNode is always deep on Attr nodes
  
  Revision  Changes    Path
  1.41      +3 -4      xml-xerces/java/src/org/apache/xerces/dom/ElementImpl.java
  
  Index: ElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/dom/ElementImpl.java,v
  retrieving revision 1.40
  retrieving revision 1.41
  diff -u -r1.40 -r1.41
  --- ElementImpl.java	18 Jan 2002 23:43:16 -0000	1.40
  +++ ElementImpl.java	26 Jan 2002 00:35:01 -0000	1.41
  @@ -88,7 +88,7 @@
    * @author Joe Kesselman, IBM
    * @author Andy Clark, IBM
    * @author Ralf Pfeiffer, IBM
  - * @version $Id: ElementImpl.java,v 1.40 2002/01/18 23:43:16 lehors Exp $
  + * @version $Id: ElementImpl.java,v 1.41 2002/01/26 00:35:01 lehors Exp $
    * @since  PR-DOM-Level-1-19980818.
    */
   public class ElementImpl
  @@ -789,9 +789,8 @@
                   Node n1 = map1.item(i);
                   if (n1.getLocalName() == null) { // DOM Level 1 Node
                       Node n2 = map2.getNamedItem(n1.getNodeName());
  -                    // REVISIT: as of 01/18/02 the spec doesn't say whether
  -                    // this should be deep
  -                    if (n2 == null || !((Node3) n1).isEqualNode(n2, deep)) {
  +                    // Attr.isEqualNode is always deep
  +                    if (n2 == null || !((Node3) n1).isEqualNode(n2, true)) {
                           return false;
                       }
                   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org