Merging embedded locations on file read leaves the element to embedded node map with multiple entries for the same node.
Deleting the host element causes and infinite loop due to the clean up logic for the map.
Preliminary investigations on the merge code indicates the target node doesn't think it is embedded (no host element), but its embedding element-node map still has entries for the nodes embedded in it.
Merging embedded locations on file read leaves the element to embedded node map with multiple entries for the same node. Deleting the host element causes and infinite loop due to the clean up logic for the map. Preliminary investigations on the merge code indicates the target node doesn't think it is embedded (no host element), but its embedding element-node map still has entries for the nodes embedded in it.