Make domscan be more robust for SVG and other odd constructions