<?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>90206</bug_id>
          
          <creation_ts>2012-06-28 14:16:47 -0700</creation_ts>
          <short_desc>Pasting of first newline into text area does not appear to work</short_desc>
          <delta_ts>2022-11-30 16:46:18 -0800</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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Joshua Lock (joshuagl)">joshua.lock</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>cdumez</cc>
    
    <cc>darin</cc>
    
    <cc>enrica</cc>
    
    <cc>jason</cc>
    
    <cc>marijnh</cc>
    
    <cc>pflynn</cc>
    
    <cc>ravi.kasibhatla</cc>
    
    <cc>rniwa</cc>
    
    <cc>tkent</cc>
    
    <cc>tony</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>659818</commentid>
    <comment_count>0</comment_count>
    <who name="Joshua Lock (joshuagl)">joshua.lock</who>
    <bug_when>2012-06-28 14:16:47 -0700</bug_when>
    <thetext>The first newline pasted into a an empty textarea isn&apos;t rendered.

Reproduced on: Safari 5.1.7 (Win), Chrome 20.0.1132.43 (Linux) and Chromium r144706.

Reproduction steps: Paste exactly one newline in an empty textarea. The first paste results in nothing.

Expected result: cursor on second line with new line inserted.

Actual result: cursor on first line.

Additional details: A second (and any following) pasted newline results in a newline being inserted.
Firefox 13 IE 9 and Opera 12.00 each work as expected.

From http://crbug.com/121627</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>659819</commentid>
    <comment_count>1</comment_count>
    <who name="Joshua Lock (joshuagl)">joshua.lock</who>
    <bug_when>2012-06-28 14:17:30 -0700</bug_when>
    <thetext>I&apos;d like to work on this, if someone with edit bugs would assign to me I&apos;d appreciate it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>882495</commentid>
    <comment_count>2</comment_count>
    <who name="Marijn Haverbeke">marijnh</who>
    <bug_when>2013-04-29 01:08:09 -0700</bug_when>
    <thetext>It seems that this behavior, beyond happening on the first paste, also happens on any first paste following a subsequent setting of the textarea&apos;s `.value`. Also, the bug only manifests itself when the the paste happens at the end of the input&apos;s text.

This is causing CodeMirror bug https://github.com/marijnh/CodeMirror/issues/1474</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>937779</commentid>
    <comment_count>3</comment_count>
    <who name="Jason Crawford">jason</who>
    <bug_when>2013-10-08 18:23:55 -0700</bug_when>
    <thetext>I can reproduce this on in Chrome 30.0.1599.69 and in Safari 6.0.5 (8536.30.1) on Mac OS X.

Would love to see this fixed, because it messes up copy and paste in web-based spreadsheets. Can I help?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1915775</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2022-11-30 16:45:35 -0800</bug_when>
    <thetext>Committed 257205@main (a4612d781cd3): &lt;https://commits.webkit.org/257205@main&gt;

Reviewed commits have been landed. Closing PR #6953 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1915776</commentid>
    <comment_count>5</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-11-30 16:46:18 -0800</bug_when>
    <thetext>&lt;rdar://problem/102835846&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>