DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27337>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27337

getElementById succeeds after removeChild and release.

           Summary: getElementById succeeds after removeChild and release.
           Product: Xerces-C++
           Version: 2.4.0
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: DOM
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to