Issue with max allowed characters of text area
You have a text area field with a maximum allowable character limit. When entering a newline character, it itakes up two characters in IE 8. This can be verified by typing to the maximum character limit and inserting a new line in the middle. Two trailing characters are removed rather than one.
Steps to Reproduce
- Configure a text area with a maximum size of 20 and also configure it to show the remaining character count.
- Enter 20 characters (maximum allowable characters).
- Enter a line break at the middle of the characters. It should delete two trailing characters.
The root cause of this problem is the newline is being interpreted by the browser as '\r\n' and counted as two characters.
The newline is being interpreted by the browser as '\r\n' and counted as two characters. Thus, when you enter a new line character, it takes up two characters.
0% found this useful