Re: [svg-developers] getElementById-in-firefox-bug

2008-10-31 Thread Erik Dahlström
Right, my hypothesis is: - since FF3 doesn't handle svg's animation (or SMIL if you will) elements they become unknown XML elements in the DOM - as a consequence the 'id' attribute isn't on an svg element that FF3 knows, and therefore is not thought to be of type ID = it's handled as any other

[svg-developers] getElementById-in-firefox-bug

2008-10-30 Thread Olaf Schnabel
Hi developers I currently try to detect an animation element in a SVG file with document.getElementById(). Unfortunately, Firefox 3.0.3 returns always null. In Opera 9.62 and IE7+ASV3.03 this example works well (I am working on Windows XP SP3). Has somebody an idea how this can be? I thought

Re: [svg-developers] getElementById-in-firefox-bug

2008-10-30 Thread Klaus Förster
Olaf, could it be that this is due to missing animation support in FF3. It seems that unknown elements are discarded and thus not part of the DOM tree ... Klaus Olaf Schnabel wrote: Hi developers I currently try to detect an animation element in a SVG file with

Re: [svg-developers] getElementById-in-firefox-bug

2008-10-30 Thread Erik Dahlström
The elements are part of the DOM tree, since it's XML, but the 'id' attribute is not of type ID for arbitrary XML. You could use 'xml:id' in such cases, but I'm not sure FF supports that. The other option is to push for FF to recognize the elements as SVG elements. Cheers /Erik On Thu, 30 Oct

Re: [svg-developers] getElementById-in-firefox-bug

2008-10-30 Thread Olaf Schnabel
Hi Klaus and Erik thanks for your answers. Am I understand you right: Because Firefox doesn't support SMIL, the animate element is a foreign element for him? Olaf Erik Dahlström wrote: The elements are part of the DOM tree, since it's XML, but the 'id' attribute is not of type ID for