[Webkit-unassigned] [Bug 54443] Textarea maxlength doesn't account for newlines

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Mar 15 16:02:14 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=54443





--- Comment #22 from Ryosuke Niwa <rniwa at webkit.org>  2011-03-15 16:02:14 PST ---
(From update of attachment 85770)
View in context: https://bugs.webkit.org/attachment.cgi?id=85770&action=review

> LayoutTests/fast/forms/script-tests/textarea-maxlength.js:96
> +// Here confirms correct count for consecutive linebreaks inputs.
> +textArea = createFocusedTextAreaWithMaxLength3();
> +textArea.innerHTML = 'a\n\n';
> +document.execCommand('insertLineBreak'); // This linebreak should be ignored because limitation up to 3 characters.
> +shouldBe('textArea.value', '"a\\n\\n"');

You should add one more test case where you call InsertLineBreak multiple times.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list