handle DOM Ranges in SVG context