[Webkit-unassigned] [Bug 154342] New: Textarea does not count newlines properly against maxlength
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Feb 17 10:40:14 PST 2016
https://bugs.webkit.org/show_bug.cgi?id=154342
Bug ID: 154342
Summary: Textarea does not count newlines properly against
maxlength
Classification: Unclassified
Product: WebKit
Version: Safari 9
Hardware: Macintosh
OS: OS X 10.10
Status: NEW
Severity: Normal
Priority: P2
Component: Forms
Assignee: webkit-unassigned at lists.webkit.org
Reporter: aaron.nance at pearson.com
Hard carriage returns are being counted as 2 characters against the maxlength attribute. For example, if you have a textarea with a maxlength="20" and type "0123" and press enter, copy all, and paste as much as you can you'd expect the field to contain:
0123(newline)
0123(newline)
0123(newline)
0123(newline)
But what you get is
0123(newline)
0123(newline)
0123(newline)
01
I've added the (newline) to clarify the newline characters.
Each newline is being treated as a CR+LF instead of just a LF in the DOM.
This seems to be the same as ID 74686, which is marked as fixed, but still appears to be broken.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160217/7a898d03/attachment.html>
More information about the webkit-unassigned
mailing list