<?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>51168</bug_id>
          
          <creation_ts>2010-12-15 23:16:35 -0800</creation_ts>
          <short_desc>&lt;textarea&gt; truncates long single lines that are pasted (after about 28k characters)</short_desc>
          <delta_ts>2012-08-10 18:07:19 -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>Forms</component>
          <version>525.x (Safari 3.2)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>29636</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Jimmy Selgen Nielsen">jimmy.selgen</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>austin.cheney</cc>
    
    <cc>darin</cc>
    
    <cc>marijnh+webkit</cc>
    
    <cc>mathias</cc>
    
    <cc>mitz</cc>
    
    <cc>paulirish</cc>
    
    <cc>tkent</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>323062</commentid>
    <comment_count>0</comment_count>
    <who name="Jimmy Selgen Nielsen">jimmy.selgen</who>
    <bug_when>2010-12-15 23:16:35 -0800</bug_when>
    <thetext>When pasting a large single line of text into a text field, WebKit truncates at around 28k.
The same text, now with line breaks at 130 characters works fine.

I&apos;ve verified this on Windows XP, using both Safari and Chrome.
IE, Firefox and Opera works as expected.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>323349</commentid>
    <comment_count>1</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2010-12-16 12:25:54 -0800</bug_when>
    <thetext>You are saying that the text field takes 28,000 characters, but it would be better if it would take more than 28,000?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>323367</commentid>
    <comment_count>2</comment_count>
    <who name="Jimmy Selgen Nielsen">jimmy.selgen</who>
    <bug_when>2010-12-16 12:58:17 -0800</bug_when>
    <thetext>For my particular need, i need to paste around around 500k into a text field.
It may not be pretty, but it&apos;s what i need.

Would it be better ? Maybe not, but It would be more consistent.
I would expect a text field to be able to hold any length of text up to some max, regardless of how many CR/LF the text contains.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>323368</commentid>
    <comment_count>3</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2010-12-16 13:00:04 -0800</bug_when>
    <thetext>And by text field, do you mean &lt;input type=&quot;text&quot;&gt; or &lt;textarea&gt;?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>323606</commentid>
    <comment_count>4</comment_count>
    <who name="Jimmy Selgen Nielsen">jimmy.selgen</who>
    <bug_when>2010-12-16 22:29:09 -0800</bug_when>
    <thetext>That would be a TextArea.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>361445</commentid>
    <comment_count>5</comment_count>
    <who name="Marijn Haverbeke">marijnh+webkit</who>
    <bug_when>2011-03-03 01:54:12 -0800</bug_when>
    <thetext>I&apos;ve seen something similar, but it doesn&apos;t only seem to happen on pasting, even when the content is present in the HTML, or is injected by a script. I see the same problem on Chrome 9.0 and Chrome 11.0 (Debian Linux, 64-bit). See http://marijnhaverbeke.nl/upload/webkit-textarea.html for an example.

The scrollbar is visible for the whole width of the text, but the text appears &apos;invisible&apos; past a certain point.

Curiously, the point at which the text gets cut off isn&apos;t a fixed number. Putting different strings into the textarea causes different cut-off points. Some texts do not get cut off at all, and there seems to be an &apos;affinity&apos; for certain points--if I add a few characters to the start of the text in the linked page, it still cuts off after &apos;{if(a.nodeName)&apos;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>664498</commentid>
    <comment_count>6</comment_count>
    <who name="austincheney">austin.cheney</who>
    <bug_when>2012-07-08 15:09:54 -0700</bug_when>
    <thetext>I can demonstrate this bug in Windows 7 with the following steps:

1) Go to http://prettydiff.com/prettydiff.js
2) Copy the code from this JavaScript file to the clipboard
3) Go to http://prettydiff.com/
4) In the first set of options choose &quot;Minify&quot;
5) Paste the code from step 1 and 2 into the input textarea.
6) Verify the entirety of the text contents were pasted into the textarea.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>693001</commentid>
    <comment_count>7</comment_count>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2012-08-10 18:07:19 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 29636 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>