Do not remove all child nodes when recreating the TSPAN text element

Currently all children are removed when a new text is set. This means a
title attribute is removed while setting a text attribute. By only
getting the TSPAN elements and removing them the other nodes are
preserved.