SVG element may reference arbitrary DOM element before running its insertion logic