Bug 13935

Summary: "Undo" adds a space in <textarea>s
Product: WebKit Reporter: Sridhar Gurivireddy <just1gb>
Component: HTML EditingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WORKSFORME    
Severity: Normal    
Priority: P2    
Version: 523.x (Safari 3)   
Hardware: PC   
OS: OS X 10.4   
Attachments:
Description Flags
Type some text into the textarea and do a "UNDO" none

Description Sridhar Gurivireddy 2007-05-30 11:59:32 PDT
Undo of editing operation adds a space in <textarea>

For example, type  "Safari rocks" into <textarea> and do a UNDO. A space is added at the begining of <textarea>
Comment 1 Sridhar Gurivireddy 2007-05-30 12:00:48 PDT
Created attachment 14787 [details]
Type some text into the textarea and do a "UNDO"
Comment 2 David Kilzer (:ddkilzer) 2007-06-01 07:48:35 PDT
Thanks for the bug report, Sridhar.

Are you using shipping Safari, or a WebKit nightly to test?  http://nightly.webkit.org/

When I tried the test, I didn't not see any extra spaces added after an undo operation.  (Used a local debug build of WebKit r21911 with Safari 2.0.4 (419.3) on Mac OS X 10.4.9 (8P135).)

In fact, the <textarea> element in the attachment has one space to begin with anyway because of the way it's defined in HTML.

Could you give more detailed steps to reproduce?

Comment 3 Sridhar Gurivireddy 2007-06-05 11:25:10 PDT
The latest webkit build does not have it. I found it in old build- revision 21240