<textarea maxlength="5" rows="3" name="text"></textarea>
https://jsfiddle.net/187117qq/
We can then e.g. type "12", press enter, and type "34", and then we can’t type more.
But when we submit a form with this content, request to server will contains
text=12%0D%0A34
It is 6 characters "12\r\n34", and we get validation failed on server side, because we expect 5 characters max.
Why this happens?
Is there a way to fix this? To make same validation on client and server side?