Add source position data to element and text nodes