ftlabs / ftellipsis

Multi-line ellipsis made possible
MIT License
486 stars 39 forks source link

IE9 #6

Closed TheRealAlan closed 11 years ago

TheRealAlan commented 11 years ago

In IE9, I'm getting this error on init:

SCRIPT5007: Unable to get property 'add' of undefined or null reference ftellipsis.js, line 309 character 5

And in IE8, this is the error that gets thrown:

SCRIPT5007: Object expected ftellipsis.js, line 64 character 5

wilsonpage commented 11 years ago

These browsers are not officially supported. If you use a classList polyfill in IE9, it may work, but not guaranteed.

IE8 will not work for multiple reasons. The error you mentioned is likely due to the lack of window.getComputedStyle.