[ http://nagoya.apache.org/jira/browse/XERCESC-1168?page=history ]
Alberto Massari updated XERCESC-1168: ------------------------------------- Priority: Major > getElementById succeeds after removeChild and release. > ------------------------------------------------------ > > Key: XERCESC-1168 > URL: http://nagoya.apache.org/jira/browse/XERCESC-1168 > Project: Xerces-C++ > Type: Bug > Components: DOM > Versions: 2.4.0 > Environment: Operating System: Windows NT/2K > Platform: PC > Reporter: juiceki > Assignee: Xerces-C Developers Mailing List > > After creating a DOMElement which looks like this (Note setIdAttribute was used > on "Id") : > <Object> > <Tool Id="A"/> > </Object > after a call to object->removeChild( toolElement ) and toolElement->release > the function getElementById( "A" ) still returns the removed node. Should this > happen? > Furthermore, if I exclude the call to "release" (above), and > (re)add a new element with 'Id="A"' then a call to > getElementById( "A" ) returns the previously removed (parent less) element > rather than the new element added. > If the "release" call was included in the above scenario, then the new element > is returned as expected. > I feel that this is a bug, perhaps I am using the API incorrectly. > Feel free to contact me if you need clarification. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://nagoya.apache.org/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]