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

cvs commit: xml-xerces/c/src/xercesc/dom NamedNodeMapImpl.cpp

tng         02/04/01 13:02:01

  Modified:    c/src/xercesc/dom NamedNodeMapImpl.cpp
  Log:
  Do not issue DOM_DOMException::INUSE_ATTRIBUTE_ERR if the owner is the same.
  
  Revision  Changes    Path
  1.2       +2 -2      xml-xerces/c/src/xercesc/dom/NamedNodeMapImpl.cpp
  
  Index: NamedNodeMapImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/dom/NamedNodeMapImpl.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- NamedNodeMapImpl.cpp	1 Feb 2002 22:21:48 -0000	1.1
  +++ NamedNodeMapImpl.cpp	1 Apr 2002 21:02:01 -0000	1.2
  @@ -55,7 +55,7 @@
    */
   
   /*
  - * $Id: NamedNodeMapImpl.cpp,v 1.1 2002/02/01 22:21:48 peiyongz Exp $
  + * $Id: NamedNodeMapImpl.cpp,v 1.2 2002/04/01 21:02:01 tng Exp $
    */
   
   #include "NamedNodeMapImpl.hpp"
  @@ -268,7 +268,7 @@
           throw DOM_DOMException(DOM_DOMException::WRONG_DOCUMENT_ERR,null);
       if (readOnly)
           throw DOM_DOMException(DOM_DOMException::NO_MODIFICATION_ALLOWED_ERR, null);
  -    if (arg->isOwned())
  +    if ((arg->getNodeType() == DOM_Node::ATTRIBUTE_NODE) && arg->isOwned() && (arg->ownerNode != ownerNode))
           throw DOM_DOMException(DOM_DOMException::INUSE_ATTRIBUTE_ERR,null);
   
       arg->ownerNode = ownerNode;
  
  
  

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