Closed intelligence closed 11 years ago
Hello again,
Great that you were able to solve the other trouble I had with the script not working in Firefox. I've stumbled upon what seems to be another bug.
I got it working when using an unique id, but if I use: textFit(document.getElementsByClassName('content')); or even textFit($('.content'));
TypeError: el.getAttribute is not a function if (el.length === 0 || (!settings.reProcess && el.getAttribute('boxfitted'))) {
This is present both in Firefox and in Webkit.
Thanks for the report. It's looking like I need to add a basic jasmine suite to this project.
Hello again,
Great that you were able to solve the other trouble I had with the script not working in Firefox. I've stumbled upon what seems to be another bug.
I got it working when using an unique id, but if I use: textFit(document.getElementsByClassName('content')); or even textFit($('.content'));
TypeError: el.getAttribute is not a function if (el.length === 0 || (!settings.reProcess && el.getAttribute('boxfitted'))) {
This is present both in Firefox and in Webkit.