aFarkas / webshim

[DEPRECATED] Webshims Lib is a modular capability-based polyfill-loading library
http://aFarkas.github.com/webshim/demos/index.html
MIT License
1.42k stars 201 forks source link

Maxlength throws wrong error message #552

Open koenknol opened 8 years ago

koenknol commented 8 years ago

In Chrome the message of tooLong doens't calculate the used newlines when validating for example the maxlength of a textarea.

In Firefox it doesn't throw any error if newlines are used, while the characters count with newlines are more then the maxlength.

Happens only when i copy text from somewhere else inside the textarea.