You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Scott Cantor (JIRA)" <xe...@xml.apache.org> on 2009/11/03 23:20:34 UTC

[jira] Commented: (XERCESC-1168) getElementById succeeds after removeChild and release.

    [ https://issues.apache.org/jira/browse/XERCESC-1168?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12773247#action_12773247 ] 

Scott Cantor commented on XERCESC-1168:
---------------------------------------

I don't have a "simple to reproduce" test case at the moment, but it's not fixed. I observed the same issue in 3.0.1 and had to work around it by "unmarking" the attributes when I disconnected the offending node.

But I won't reopen without a test case, per your comment.

> getElementById succeeds after removeChild and release.
> ------------------------------------------------------
>
>                 Key: XERCESC-1168
>                 URL: https://issues.apache.org/jira/browse/XERCESC-1168
>             Project: Xerces-C++
>          Issue Type: Bug
>          Components: DOM
>    Affects Versions: 2.4.0
>         Environment: Operating System: Windows NT/2K
> Platform: PC
>            Reporter: juiceki
>             Fix For: 3.0.1
>
>
> 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.
-
You can reply to this email to add a comment to the issue online.


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