<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>61483</bug_id>
          
          <creation_ts>2011-05-25 16:49:02 -0700</creation_ts>
          <short_desc>Textarea will not accept space characters at end of line</short_desc>
          <delta_ts>2011-07-01 23:20:18 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>HTML Editing</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Regression</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>54598</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Peter Braden">peterbraden</reporter>
          <assigned_to name="Ryosuke Niwa">rniwa</assigned_to>
          <cc>alexander.a.cabal</cc>
    
    <cc>ap</cc>
    
    <cc>enrica</cc>
    
    <cc>peterbraden</cc>
    
    <cc>rniwa</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>410027</commentid>
    <comment_count>0</comment_count>
    <who name="Peter Braden">peterbraden</who>
    <bug_when>2011-05-25 16:49:02 -0700</bug_when>
    <thetext>Overview:

Typing space at the end of a line with certain character combinations will not insert a space and wrap. Additionally, after typing other characters which cause the line to wrap, the space character will be omitted. Additionally, after problematically inserting a space, then retyping space, the extra space will disappear.

Steps to Reproduce:

This is a really interesting bug because it happens with a bunch of different words in the line, but is inconsistent. I have managed to find a consistent repro case though.

1) With a html page as follows:

&lt;html&gt;
  &lt;head /&gt;
  &lt;body&gt;
    &lt;textarea style=&quot;height: 34px; width: 535px;&quot;&gt;&lt;/textarea&gt;
  &lt;/body&gt;
&lt;/html&gt;    

2) Edit the textarea to contain as many &apos;a&apos; characters as takes to fill the line (another a would make it wrap)
3) Delete the last &apos;a&apos; and add an &apos;l&apos; character. The line should not wrap.
4) Try and add a space character - notice the line does not wrap.
5) You can try and add as many space characters as you like - they are not added to the val, and the textarea won&apos;t wrap.
6) Add another non space character. The line will wrap, however arrowing back will confirm the space character was not added.
7) Notice that adding space characters problematically, then repeating steps, truncates trailing spaces to a single space.

Expected Results:

- Space characters will make the line wrap
- Space characters should be able to be added at the end of lines.


Build Date &amp; Platform:

Repro&apos;d on Chrome, Safari, and the nightly WebKit r87281 built on 25 May 2011.
Only tested on OSX thus far.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>410211</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-05-25 23:12:49 -0700</bug_when>
    <thetext>This behavior is very similar to what TextEdit has, and thus likely intentional. I do not know what the rationale is.

Note that all the spaces are inserted - they just do not cause formatting changes, but if you resize the text area, they will appear. Similarly, they are sent with form submission and when copying into clipboard.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>410588</commentid>
    <comment_count>2</comment_count>
    <who name="Peter Braden">peterbraden</who>
    <bug_when>2011-05-26 10:46:39 -0700</bug_when>
    <thetext>The main bug is that the spaces are _not_ inserted - programatic inspection or additional non-space character insertion shows that the spaces are not there.

I also disagree that this behaviour is expected - the other browsers handle this by wrapping on space, as do many other apps - textedit likely has this behavior because it may use webkit under the covers? I have several users who have reported this as a bug, reinforcing the view that the behaviour is unexpected.

Best,

P



(In reply to comment #1)
&gt; This behavior is very similar to what TextEdit has, and thus likely intentional. I do not know what the rationale is.
&gt; 
&gt; Note that all the spaces are inserted - they just do not cause formatting changes, but if you resize the text area, they will appear. Similarly, they are sent with form submission and when copying into clipboard.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>410629</commentid>
    <comment_count>3</comment_count>
      <attachid>95010</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-05-26 11:29:00 -0700</bug_when>
    <thetext>Created attachment 95010
test case

&gt; The main bug is that the spaces are _not_ inserted - programatic inspection or additional non-space character insertion shows that the spaces are not there.

Oh, I see that now. the reason I didn&apos;t see it before is that&apos;s a regression from Safari 5 to nightly builds. In Safari 5, spaces are inserted, but visually it looks the same.

&gt; textedit likely has this behavior because it may use webkit under the covers?

It does not.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>410632</commentid>
    <comment_count>4</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-05-26 11:34:19 -0700</bug_when>
    <thetext>This is caused by the bug 54598.  VisiblePosition is canonicalized before the space and disallowing any space be inserted at the end of line.

*** This bug has been marked as a duplicate of bug 54598 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>410669</commentid>
    <comment_count>5</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-05-26 11:49:10 -0700</bug_when>
    <thetext>This is a regression, so it&apos;s not a duplicate of bug bug 54598.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>420881</commentid>
    <comment_count>6</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-06-14 17:23:20 -0700</bug_when>
    <thetext>I have confirmed that http://trac.webkit.org/changeset/88883 fixed this bug as well.

ap, would you be interesting in making a DRT test that works on all ports/platform for this bug?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>420887</commentid>
    <comment_count>7</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-06-14 17:31:19 -0700</bug_when>
    <thetext>Not any time soon, sorry.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>420888</commentid>
    <comment_count>8</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-06-14 17:32:25 -0700</bug_when>
    <thetext>(In reply to comment #7)
&gt; Not any time soon, sorry.

Okay. Let me try then.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>420924</commentid>
    <comment_count>9</comment_count>
      <attachid>97210</attachid>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-06-14 18:21:55 -0700</bug_when>
    <thetext>Created attachment 97210
adds a regression test</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>421014</commentid>
    <comment_count>10</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-06-14 22:23:57 -0700</bug_when>
    <thetext>When I run this test in Safari 5.0.5 (which presumably didn&apos;t have this bug), the test says FAIL. Am I just confused, or does the test not capture the regression aspect of this problem?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>421025</commentid>
    <comment_count>11</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-06-14 22:50:33 -0700</bug_when>
    <thetext>(In reply to comment #10)
&gt; When I run this test in Safari 5.0.5 (which presumably didn&apos;t have this bug), the test says FAIL. Am I just confused, or does the test not capture the regression aspect of this problem?

Okay, I don&apos;t believe that this is a regression anymore.  I can reproduce the exact bug on Safari 5.  Just insert many &apos;a&apos; as possible in the attached demo, and insert one space.  You can&apos;t insert any more spaces after that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>421028</commentid>
    <comment_count>12</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-06-14 22:58:46 -0700</bug_when>
    <thetext>The regression part is that although spaces were not visible in Safari 5, they were inserted to DOM.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>421040</commentid>
    <comment_count>13</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-06-14 23:20:36 -0700</bug_when>
    <thetext>(In reply to comment #12)
&gt; The regression part is that although spaces were not visible in Safari 5, they were inserted to DOM.

That behavior is not reproducible at least on my MBP when I insert &quot;aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa &quot; on the attached document.  I can&apos;t insert anymore spaces after the space at the end.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>421092</commentid>
    <comment_count>14</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-06-15 00:53:51 -0700</bug_when>
    <thetext>Please try steps to reproduce form the original description (fill the line with aaa&apos;s, delete the last one, type l, then press space multiple times). That&apos;s a regression.

However, given your example, it&apos;s probably some small inconsequential change that caused it. Quite mysterious though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>421093</commentid>
    <comment_count>15</comment_count>
      <attachid>97210</attachid>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2011-06-15 00:54:22 -0700</bug_when>
    <thetext>Comment on attachment 97210
adds a regression test

Either way, this is clearly good to land.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>421247</commentid>
    <comment_count>16</comment_count>
      <attachid>97290</attachid>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-06-15 07:18:19 -0700</bug_when>
    <thetext>Created attachment 97290
demo (bug on Safari 5, works on ToT)

(In reply to comment #14)
&gt; Please try steps to reproduce form the original description (fill the line with aaa&apos;s, delete the last one, type l, then press space multiple times). That&apos;s a regression.
&gt; 
&gt; However, given your example, it&apos;s probably some small inconsequential change that caused it. Quite mysterious though.

Right, but this is purely due to font-metric difference / line layout difference.  In this new demo, the exact bug described in this bug reproduces on Safari 5 but does not reproduce on ToT WebKit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>421361</commentid>
    <comment_count>17</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-06-15 09:18:51 -0700</bug_when>
    <thetext>As noted in comments above, this isn&apos;t a regression after all.  Only the exact condition by which the bug manifests changed over time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>421370</commentid>
    <comment_count>18</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-06-15 09:28:54 -0700</bug_when>
    <thetext>Committed r88946: &lt;http://trac.webkit.org/changeset/88946&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>431585</commentid>
    <comment_count>19</comment_count>
    <who name="Alex Cabal">alexander.a.cabal</who>
    <bug_when>2011-07-01 23:10:53 -0700</bug_when>
    <thetext>Just wanted to pop in and mention that this bug isn&apos;t limited to textareas.  Users of my web app ran into this problem with spans that have contenteditable=&quot;true&quot; that wrap to a new line.

If you have a span with contenteditable=&quot;true&quot; nested within a div and then try to enter a space at the point where the span will wrap to a newline, this bug appears too: that is, the previous word in the span will wrap down, the space will disappear, and the previous word will run in to the new word you&apos;re tying because the space disappeared.

I can&apos;t download the nightly to test that it&apos;s been fixed for contenteditables as well, but I just wanted you to be aware that this bug isn&apos;t limited to textareas.  I can provide more information if necessary.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>431586</commentid>
    <comment_count>20</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2011-07-01 23:20:18 -0700</bug_when>
    <thetext>(In reply to comment #19)
&gt; Just wanted to pop in and mention that this bug isn&apos;t limited to textareas.  Users of my web app ran into this problem with spans that have contenteditable=&quot;true&quot; that wrap to a new line.
&gt; 
&gt; If you have a span with contenteditable=&quot;true&quot; nested within a div and then try to enter a space at the point where the span will wrap to a newline, this bug appears too: that is, the previous word in the span will wrap down, the space will disappear, and the previous word will run in to the new word you&apos;re tying because the space disappeared.
&gt; 
&gt; I can&apos;t download the nightly to test that it&apos;s been fixed for contenteditables as well, but I just wanted you to be aware that this bug isn&apos;t limited to textareas.  I can provide more information if necessary.

Yes, I&apos;m fully aware of that.  r88883 should have fixed that as well.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>95010</attachid>
            <date>2011-05-26 11:29:00 -0700</date>
            <delta_ts>2011-05-26 11:29:00 -0700</delta_ts>
            <desc>test case</desc>
            <filename>test.html</filename>
            <type>text/html</type>
            <size>1057</size>
            <attacher name="Alexey Proskuryakov">ap</attacher>
            
              <data encoding="base64">PGh0bWw+Cjxib2R5Pgo8dGV4dGFyZWEgc3R5bGU9ImhlaWdodDogMzRweDsgd2lkdGg6IDUzNXB4
OyIgaWQ9dGV4dCBvbmlucHV0PSJjaGFuZ2VkKCkiPjwvdGV4dGFyZWE+CjxkaXYgaWQ9cmVzdWx0
PjwvZGl2Pgo8b2w+CjxsaT4gRWRpdCB0aGUgdGV4dGFyZWEgdG8gY29udGFpbiBhcyBtYW55ICdh
JyBjaGFyYWN0ZXJzIGFzIHRha2VzIHRvIGZpbGwgdGhlIGxpbmUgKGFub3RoZXIgYSB3b3VsZCBt
YWtlIGl0IHdyYXApCjxsaT4gRGVsZXRlIHRoZSBsYXN0ICdhJyBhbmQgYWRkIGFuICdsJyBjaGFy
YWN0ZXIuIFRoZSBsaW5lIHNob3VsZCBub3Qgd3JhcC4KPGxpPiBUcnkgYW5kIGFkZCBhIHNwYWNl
IGNoYXJhY3RlciAtIG5vdGljZSB0aGUgbGluZSBkb2VzIG5vdCB3cmFwLgo8bGk+IFlvdSBjYW4g
dHJ5IGFuZCBhZGQgYXMgbWFueSBzcGFjZSBjaGFyYWN0ZXJzIGFzIHlvdSBsaWtlIC0gdGhleSBh
cmUgbm90IGFkZGVkIHRvIHRoZSB2YWwsIGFuZCB0aGUgdGV4dGFyZWEgd29uJ3Qgd3JhcC4KPGxp
PiBBZGQgYW5vdGhlciBub24gc3BhY2UgY2hhcmFjdGVyLiBUaGUgbGluZSB3aWxsIHdyYXAsIGhv
d2V2ZXIgYXJyb3dpbmcgYmFjayB3aWxsIGNvbmZpcm0gdGhlIHNwYWNlIGNoYXJhY3RlciB3YXMg
bm90IGFkZGVkLgo8bGk+IE5vdGljZSB0aGF0IGFkZGluZyBzcGFjZSBjaGFyYWN0ZXJzIHByb2Js
ZW1hdGljYWxseSwgdGhlbiByZXBlYXRpbmcgc3RlcHMsIHRydW5jYXRlcyB0cmFpbGluZyBzcGFj
ZXMgdG8gYSBzaW5nbGUgc3BhY2UuCjwvb2w+CjxzY3JpcHQ+CnZhciB0ZXh0ID0gZG9jdW1lbnQu
Z2V0RWxlbWVudEJ5SWQoInRleHQiKTsKdmFyIHJlc3VsdCA9IGRvY3VtZW50LmdldEVsZW1lbnRC
eUlkKCJyZXN1bHQiKTsKCnRleHQuZm9jdXMoKTsKCmZ1bmN0aW9uIGNoYW5nZWQoKQp7CiAgICBy
ZXN1bHQuaW5uZXJIVE1MID0gIkxlbmd0aDogIiArIHRleHQudGV4dExlbmd0aDsKICAgIHJlc3Vs
dC5pbm5lckhUTUwgKz0gIjxicj4iICsgZXNjYXBlKHRleHQudmFsdWUpOwp9CgpjaGFuZ2VkKCk7
Cjwvc2NyaXB0Pgo8L2JvZHk+CjwvaHRtbD4gICAgCg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>97210</attachid>
            <date>2011-06-14 18:21:55 -0700</date>
            <delta_ts>2011-06-15 00:54:22 -0700</delta_ts>
            <desc>adds a regression test</desc>
            <filename>bug-61483-20110614182154.patch</filename>
            <type>text/plain</type>
            <size>2408</size>
            <attacher name="Ryosuke Niwa">rniwa</attacher>
            
              <data encoding="base64">SW5kZXg6IExheW91dFRlc3RzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBMYXlvdXRUZXN0cy9D
aGFuZ2VMb2cJKHJldmlzaW9uIDg4ODg4KQorKysgTGF5b3V0VGVzdHMvQ2hhbmdlTG9nCSh3b3Jr
aW5nIGNvcHkpCkBAIC0xLDMgKzEsMTUgQEAKKzIwMTEtMDYtMTQgIFJ5b3N1a2UgTml3YSAgPHJu
aXdhQHdlYmtpdC5vcmc+CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZI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OYW1lKCd0ZXh0YXJlYScpWzBdOwordGV4dGFyZWEuZm9jdXMoKTsKK3RleHRhcmVhLnNl
bGVjdGlvblN0YXJ0ID0gdGV4dGFyZWEudmFsdWUubGVuZ3RoOwordGV4dGFyZWEuc2VsZWN0aW9u
RW5kID0gdGV4dGFyZWEudmFsdWUubGVuZ3RoOworZG9jdW1lbnQuZXhlY0NvbW1hbmQoJ0luc2Vy
dFRleHQnLCBmYWxzZSwgJyAnKTsKKwordmFyIG9yaWdpbmFsTGVuZ3RoID0gdGV4dGFyZWEudmFs
dWUubGVuZ3RoOworZG9jdW1lbnQuZXhlY0NvbW1hbmQoJ0luc2VydFRleHQnLCBmYWxzZSwgJyAn
KTsKKworZG9jdW1lbnQud3JpdGVsbihvcmlnaW5hbExlbmd0aCA8IHRleHRhcmVhLnZhbHVlLmxl
bmd0aCA/ICdQQVNTJyA6ICdGQUlMJyk7CisKK2lmICh3aW5kb3cubGF5b3V0VGVzdENvbnRyb2xs
ZXIpIHsKKyAgICB0ZXh0YXJlYS5wYXJlbnROb2RlLnJlbW92ZUNoaWxkKHRleHRhcmVhKTsKKyAg
ICBsYXlvdXRUZXN0Q29udHJvbGxlci5kdW1wQXNUZXh0KCk7Cit9CisKKzwvc2NyaXB0PgorPC9i
b2R5PgorPC9odG1sPgo=
</data>
<flag name="review"
          id="91082"
          type_id="1"
          status="+"
          setter="ap"
    />
          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>97290</attachid>
            <date>2011-06-15 07:18:19 -0700</date>
            <delta_ts>2011-06-15 07:18:19 -0700</delta_ts>
            <desc>demo (bug on Safari 5, works on ToT)</desc>
            <filename>insert-wrapping-space-in-textarea.html</filename>
            <type>text/html</type>
            <size>741</size>
            <attacher name="Ryosuke Niwa">rniwa</attacher>
            
              <data encoding="base64">PCFET0NUWVBFPgo8aHRtbD4KPGJvZHk+CjxwPlRoaXMgdGVzdCBlbnN1cmVzIFdlYktpdCBhbGxv
d3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