Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

textarea maxlength inconsistent with new lines #73

Open
zachleat opened this issue Jul 12, 2016 · 0 comments
Open

textarea maxlength inconsistent with new lines #73

zachleat opened this issue Jul 12, 2016 · 0 comments

Comments

@zachleat
Copy link

zachleat commented Jul 12, 2016

<textarea maxlength="2">

image

One new line is allowed in Chrome and Safari, but two are allowed in Firefox, Edge, and IE.

Safari has another peculiar behavior in that it seems to round up (?) when new lines are in play. For example: maxlength="1" allows 1; maxlength="2" allows 1; maxlength="3" allows 2, maxlength="4" allows 2; maxlength="5" allows 3, etc.

Relevant browser issues:

JSBin Test case

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant