Re: Determining supported elements via Javascript
codedread <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.svg |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <[email protected]> |
On Sep 25, 11:34 pm, Boris Zbarsky <[email protected]> wrote: > Dan Rumney wrote: > > What I'd like to be able to do is determine whether an SVG animation > > element is supported and, if it is, use it. If it isn't, I can fall > > back to JS animation. > > hasFeature() ? > > -Boris Yes, I agree with Boris, hasFeature() and check for SMIL support. You can even install the FakeSmile JS library so that you only have to code your SMIL and it will (basically) work in multiple browsers (with fallback to the JS library for those browsers not supporting SMIL). Regards, Jeff