You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Ludger Bünger (JIRA)" <xe...@xml.apache.org> on 2010/04/16 17:36:26 UTC

[jira] Updated: (XERCESJ-1445) if an Element node is renamed resulting in a node replacement, the range, nodeIterator and identifier data structure should be updated.

     [ https://issues.apache.org/jira/browse/XERCESJ-1445?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ludger Bünger updated XERCESJ-1445:
-----------------------------------

    Attachment: RenameReplaceNodeIdentifierRangeIteratorUpdatePatch.txt

> if an Element node is renamed resulting in a node replacement, the range, nodeIterator and identifier data structure should be updated.
> ---------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: XERCESJ-1445
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1445
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: DOM (Level 3 Core)
>            Reporter: Ludger Bünger
>         Attachments: RenameReplaceNodeIdentifierRangeIteratorUpdatePatch.txt
>
>
> If an element node is renamed resulting in a node replace, certain internal data structures are not updated.
> While userdata and event listeners are transfered from the previous to the new node, the following are not:
> 1. Ranges containg the element as a start or endContainer do update as if the node has been removed.
> 2. NodeIterators containing the element as a iteration point do update as if the node has been removed.
> I think in both cases the range/node iterator should be treated such that the new element replaces the old element without range update.
> 3. the identifier map containing all nodes associated with an identifier attribute is partially updated: entries for the old node are removed but no mapping to the new node is inserted.
> Attached please find a patch.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

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