[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:16:25 PDT 2011


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





--- Comment #23 from Naoki Takano <takano.naoki at gmail.com>  2011-03-15 16:16:25 PST ---
Ok,

How about the cpp part?

No problem?

(In reply to comment #22)
> (From update of attachment 85770 [details])
> 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