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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.