Summary: | REGRESSION (NativeTextField): Leading and trailing spaces trimmed from text field value attribute | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | mitz | ||||||
Component: | HTML Editing | Assignee: | Adele Peterson <adele> | ||||||
Status: | VERIFIED FIXED | ||||||||
Severity: | Normal | CC: | adele, darin, hyatt | ||||||
Priority: | P1 | Keywords: | Regression | ||||||
Version: | 420+ | ||||||||
Hardware: | Mac | ||||||||
OS: | OS X 10.4 | ||||||||
URL: | data:text/html,There%20should%20be%20spaces%20before%20"foo"%20and%20after%20"bar"%20<INPUT%20value="%20foo%20bar%20"> | ||||||||
Attachments: |
|
Description
mitz
2006-04-15 03:02:53 PDT
The contenteditable version of this bug is <div contenteditable> lorem ipsum </div> where the outer spaces are initially invisible, but when you add a space at the beginning/end you get two spaces to show. Created attachment 7726 [details]
Possible fix for the text field case
I think the best way to fix this is to use the appropriate whitespace mode inside the text fields. Assuming there is an appropriate whitespace mode. mitz and i talked about using whitespace:pre for the inner div, instead of just whitespace:nowrap. i will investigate. Created attachment 7794 [details]
patch to set white-space:pre
Comment on attachment 7794 [details]
patch to set white-space:pre
I'll need to re-generate pixel results for this test on a PPC machine before checking in.
Comment on attachment 7794 [details]
patch to set white-space:pre
r=me
|