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 "Michael Glavassevich (JIRA)" <xe...@xml.apache.org> on 2010/04/28 06:20:33 UTC

[jira] Assigned: (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 ]

Michael Glavassevich reassigned XERCESJ-1445:
---------------------------------------------

    Assignee: Michael Glavassevich

> 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)
>    Affects Versions: 2.9.1
>            Reporter: Ludger Bünger
>            Assignee: Michael Glavassevich
>         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.
-
You can reply to this email to add a comment to the issue online.


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