add proper support for tspan elements