xerces-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 27337] New: - getElementById succeeds after removeChild and release.
Date Mon, 01 Mar 2004 15:28:17 GMT
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: xerces-c-dev@xml.apache.org
        ReportedBy: juiceki@yahoo.com


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: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


Mime
View raw message