-
darin@apple.com authored
2008-03-16 Darin Adler <darin@apple.com> Reviewed by Mitz. - fix http://bugs.webkit.org/show_bug.cgi?id=14941 <rdar://problem/5404093> textarea value from JavaScript includes extra newline Test: fast/forms/textarea-trailing-newline.html * rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::finishText): Added code to strip the trailing newline. It's possible there are some obscure cases where this is not wanted, but I couldn't find any. If someone finds a case where this is bad, we can make the code conditional. LayoutTests: 2008-03-16 Darin Adler <darin@apple.com> Reviewed by Mitz. - test for http://bugs.webkit.org/show_bug.cgi?id=14941 <rdar://problem/5404093> textarea value from JavaScript includes extra newline * fast/forms/textarea-paste-newline.html: Updated test to expect correct behavior instead of expecting the bug. * fast/forms/textarea-trailing-newline-expected.txt: Added. * fast/forms/textarea-trailing-newline.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@31081 268f45cc-cd09-0410-ab3c-d52691b4dbfc
85d638c1