add partial path trace to dom elements