For <svg> element that is used under IE9 the style="overflow:hidden" attribute is very important.
Unfortunately, when the svg object is created using jQuery svg-plugin using the following code…
$('#svg').svg({onLoad: drawMap});
…that attribute is not set and image can be drawn outside of limiting div (svg element).
Is it possible to set that attribute using jQuery svg-plugin? Or I should do that in some other way?
After some testing, I’ve come up with this solution which requires the
overflowto be set after the SVG element is drawn. This is a simplified example using the bundledsvgBasics.htmlfile that comes with the plugin: