Re: gteElementById for animate?
John J Barton <[email protected]> Wed, 03 Feb 2010 14:11:35 -0800
| Newsgroups | gmane.comp.mozilla.devel.svg |
|---|---|
| Message-ID | <[email protected]> |
Daniel Holbert wrote: > > Any idea why I can't get the > > animate element? > > Probably because you're using Firefox 3.6 (or lower), which lacks SVG > Animation support and hence doesn't recognize the <animate> node. > > It treats it the same as it would treat e.g. > <asdfasdf id="migrationAnimateX" ...> > (which it will also refuse to look up by ID) > > In mozilla-central nightly builds (which have SMIL support), though, > this works fine. getElementById returns the animate element, and it > successfully updates its 'to' attribute. I've posted an example here, > using the javascript you provided, plus an 'alert' to demonstrate > non-nullness: > http://people.mozilla.org/~dholbert/tests/jjb_animate_issue/x2-example.svg > > ~Daniel' Thanks! I animated with Javascript in the meantime. Next time... jjb