improve compatibility with SVG markup