Lets say I have a textarea with this text:
The regex split is behaving strangely in IE8 and lower. Use a string comparison instead and it seems to work (fiddle)
testText.split("\n")
rather than
testText.split(/\n/)
[Edit] From Steven Levithan's Blog:
Internet Explorer excludes almost all empty values from the resulting array (e.g., when two delimiters appear next to each other in the data, or when a delimiter appears at the start or end of the data)