Re: SVG supported scripted

codedread <[email protected]> Wed, 14 Oct 2009 07:10:49 -0700 (PDT)
Newsgroups gmane.comp.mozilla.devel.svg
Organization http://groups.google.com
Message-ID <[email protected]>
Sheesh, I have a bad habit of only replying to the author and not the
mailing list.  Re-posting my opinion :)

On Oct 14, 6:17 am, Dale Ellis <[email protected]> wrote:
> This to me doesn't seem to be valid anymore as some browsers
> support SVG natively.

I think the word you're looking for is "most" :)

In fact, all major browsers except IE have supported scripted SVG
since about 2006 so (in my opinion) there's almost no need to check.

My recommendation:  use an html:object referencing your SVG with HTML
fallback.  This scenario will mean that with IE users if a SVG plugin
is installed (ASV, Renesis, Saverese) then the SVG will still show up.

If you want to further check in script you can try to create a
namespaced <svg> element in script and fail out if that didn't work
perhaps?

Regards,
Jeff Schiller