Crossbrowser Inline SVG

I’ve been wanting to use inline SVG for a while, but since it isn’t supported by IE, I’ve been reluctant to make 80% of the worlds browsers unable to read it.

Here is one solution that I found after playing with XSLTs. It uses Mark Finkle’s SVG in IE behaviours, but on his site, he has to serve the example files in two different ways to get them to work in firefox and ie, because of mime-type issues.

My way around that is by using a simple (pretty much the simplest possible) client side XSLT.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: