Closed Bug 540230 Opened 14 years ago Closed 14 years ago

SMIL detection in JavaScript not working in Firefox3.7a1pre

Categories

(Core :: SVG, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 436418

People

(Reporter: al, Unassigned)

References

()

Details

(Whiteboard: [parity-Opera][parity-webkit])

User-Agent:       Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.2) Gecko/20100105 Firefox/3.6
Build Identifier: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.2) Gecko/20100105 Firefox/3.6

I found a way to detect SMIL support in JavaScript, which works on Firefox, Safari, Chrome and Opera, (and can be made to work with IE) but it fails on Firefox 3.7 due to the naming of the NS Element animationMotion.

Reproducible: Always

Steps to Reproduce:
1. document.createElementNS( '...', 'animateMotion' );
2. .indexOf( 'SVG' );
Actual Results:  
Returns false in Firefox 3.7a1pre, when it would make more sense to return true.

Expected Results:  
'TRUE'
Whiteboard: [parity-Opera][parity-webkit]
Status: UNCONFIRMED → NEW
Component: General → SVG
Ever confirmed: true
Product: Firefox → Core
QA Contact: general → general
Version: unspecified → Trunk
Why don't you try to detect the animate element, which we have implemented rather than the animateMotion which we haven't?
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
Ah awesome! Thanks Robert.
You need to log in before you can comment on or make changes to this bug.