do not reference IElement in ChangeNamespaceEdit

When an element is deleted, it gets dissociated from the document. While
it can still be referenced by an ChangeNamespaceEdit, it is useless for
undo/redo, because its ContentRange gets lost when it is dissociated.
Hence instead of referencing the element, the document and the current
caret offset where the edit took place are stored in

Signed-off-by: Florian Thienel <>
3 files changed