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/11/09 09:44:07 UTC
cvs commit: xml-crimson/src/org/apache/crimson/tree ElementNode.java XmlDocument.java
edwingo 01/11/09 00:44:07
Modified: src/org/apache/crimson/tree ElementNode.java
XmlDocument.java
Log:
Fix bug with Document.cloneNode(true) for non-namespaceAware case
Revision Changes Path
1.9 +2 -2 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.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- ElementNode.java 2001/04/11 02:27:56 1.8
+++ ElementNode.java 2001/11/09 08:44:06 1.9
@@ -1,5 +1,5 @@
/*
- * $Id: ElementNode.java,v 1.8 2001/04/11 02:27:56 edwingo Exp $
+ * $Id: ElementNode.java,v 1.9 2001/11/09 08:44:06 edwingo Exp $
*
* The Apache Software License, Version 1.1
*
@@ -91,7 +91,7 @@
ElementNode2 retval = new ElementNode(qName);
if (attributes != null) {
retval.attributes = new AttributeSet(attributes, true);
- retval.attributes.setOwnerElement(this);
+ retval.attributes.setOwnerElement(retval);
}
retval.setIdAttributeName(getIdAttributeName());
retval.setUserObject(getUserObject());
1.10 +4 -3 xml-crimson/src/org/apache/crimson/tree/XmlDocument.java
Index: XmlDocument.java
===================================================================
RCS file: /home/cvs/xml-crimson/src/org/apache/crimson/tree/XmlDocument.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- XmlDocument.java 2001/05/22 02:15:02 1.9
+++ XmlDocument.java 2001/11/09 08:44:06 1.10
@@ -1,5 +1,5 @@
/*
- * $Id: XmlDocument.java,v 1.9 2001/05/22 02:15:02 edwingo Exp $
+ * $Id: XmlDocument.java,v 1.10 2001/11/09 08:44:06 edwingo Exp $
*
* The Apache Software License, Version 1.1
*
@@ -129,7 +129,7 @@
*
* @author David Brownell
* @author Rajiv Mordani
- * @version $Revision: 1.9 $
+ * @version $Revision: 1.10 $
*/
public class XmlDocument extends ParentNode implements DocumentEx
{
@@ -1111,7 +1111,8 @@
* Changes the "owner document" of the given node, and all child
* and associated attribute nodes, to be this document. If the
* node has a parent, it is first removed from that parent.
- * <b>Obsolete</b> Use importNode method instead.
+ * <b>Obsolete</b> Use importNode method instead. Still useful for
+ * internal implementation.
*
* @param node
* @exception DOMException WRONG_DOCUMENT_ERROR when attempting
---------------------------------------------------------------------
To unsubscribe, e-mail: crimson-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: crimson-cvs-help@xml.apache.org