To make it work in Firefox 2, native SVG, you should do the following:
- add "important" as the third argument to all setPropertyValue
- find the line which says tspan.setAttribute('dy', i ? this._interval : '1em'); and change that into tspan.setAttribute('dy',15);
In Firefox 2 there is also an issue with getComputedTextLength(). This will only work when the element it is called on is rendered _and_ visible. For the onload function you can make sure everything is rendered by setting a timeout: setTimeout('TextWrap._init()',1000); Firefox 3 should not have this issue anymore. See https://bugzilla.mozilla.org/show_bug.cgi?id=345635 for more info about the getComputedTextLength() issue in Firefox 2.
|