In Internet Explorer, we are facing an issue with a multiline textarea.
After setting the content using JavaScript and checking it, everything appears correct without any additional carriage returns in the textarea:
document.getElementById( 'text-area' ).value = "Hello,\nWorld!";
However, if we place the caret at the beginning of the second line in Internet Explorer (not in the code) and press the tab key, an extra carriage character is added. Here is a string dump during the process:
value[0]='H'
value[1]='e'
value[2]='l'
value[3]='l'
value[4]='o'
value[5]=','
value[6]='\r'
value[7]='\n'
value[8]='W'
value[9]='o'
value[10]='r'
value[11]='l'
value[12]='d'
value[13]='!'
This discrepancy poses a problem as other browsers do not exhibit this behavior of inserting an extra carriage return.
If you have any suggestions on how to address this issue specifically in Internet Explorer, using CSS or JavaScript, please let us know.