kswedberg / jquery-expander

Expand and Collapse HTML content
https://kswedberg.github.io/jquery-expander/
Other
459 stars 167 forks source link

slicePoint different in IE8 compared to FF and Chrome #81

Closed LindaEllison closed 10 years ago

LindaEllison commented 10 years ago

How can I get different browsert to display the same number of characters before the split? I have the slicePoint set to 90. In IE8 it get about 90 and in FF and Chrome I get about 60.

kswedberg commented 10 years ago

IE8 seems to ignore multiple adjacent spaces (compacts them down to a single space) while FF and Chrome do not. Seems to me people wouldn't want to count those extra spaces since they don't display on the page (unless style has whitespace: pre or something), so I'm going to compact them in the plugin. That's the only way I can think of to maintain consistency.