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...@locus.apache.org on 2000/06/30 23:21:58 UTC
cvs commit: xml-xerces/java/src/org/apache/xerces/dom AttributeMap.java
lehors 00/06/30 14:21:56
Modified: java/src/org/apache/xerces/dom AttributeMap.java
Log:
setNamedItemNS failed to set ownerNode
Revision Changes Path
1.3 +6 -0 xml-xerces/java/src/org/apache/xerces/dom/AttributeMap.java
Index: AttributeMap.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/dom/AttributeMap.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- AttributeMap.java 2000/06/13 01:04:40 1.2
+++ AttributeMap.java 2000/06/30 21:21:56 1.3
@@ -122,9 +122,11 @@
throw new DOMExceptionImpl(DOMException.INUSE_ATTRIBUTE_ERR,
"DOM009 Attribute already in use");
}
+
// set owner
argn.ownerNode = ownerNode;
argn.owned(true);
+
int i = findNamePoint(arg.getNodeName(),0);
NodeImpl previous = null;
if (i >= 0) {
@@ -179,6 +181,10 @@
throw new DOMExceptionImpl(DOMException.INUSE_ATTRIBUTE_ERR,
"DOM009 Attribute already in use");
}
+
+ // set owner
+ argn.ownerNode = ownerNode;
+ argn.owned(true);
int i = findNamePoint(argn.getNamespaceURI(), argn.getLocalName());
NodeImpl previous = null;