You are viewing a plain text version of this content. The canonical link for it is here.
Posted to crimson-cvs@xml.apache.org by ed...@apache.org on 2001/01/24 04:37:17 UTC
cvs commit: xml-crimson/src/org/apache/crimson/tree ElementNode.java
edwingo 01/01/23 19:37:17
Modified: src/org/apache/crimson/tree ElementNode.java
Log:
Element.setAttributeNodeNS() should return the old value if a match is
found
Revision Changes Path
1.2 +3 -3 xml-crimson/src/org/apache/crimson/tree/ElementNode.java
Index: ElementNode.java
===================================================================
RCS file: /home/cvs/xml-crimson/src/org/apache/crimson/tree/ElementNode.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- ElementNode.java 2000/11/23 01:53:35 1.1
+++ ElementNode.java 2001/01/24 03:37:16 1.2
@@ -1,5 +1,5 @@
/*
- * $Id: ElementNode.java,v 1.1 2000/11/23 01:53:35 edwingo Exp $
+ * $Id: ElementNode.java,v 1.2 2001/01/24 03:37:16 edwingo Exp $
*
* The Apache Software License, Version 1.1
*
@@ -98,7 +98,7 @@
* @see XmlDocumentBuilder
*
* @author David Brownell
- * @version $Revision: 1.1 $
+ * @version $Revision: 1.2 $
*/
public class ElementNode extends NamespacedNode implements ElementEx
{
@@ -487,7 +487,7 @@
// Note: ownerElement of newAttr is both checked and set in the
// following call to AttributeSet.setNamedItem(Node)
- return (Attr)attributes.setNamedItem(newAttr);
+ return (Attr)attributes.setNamedItemNS(newAttr);
}
/** <b>DOM:</b> Remove the named attribute. */