<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Textarea does not count newlines properly against maxlength"
   href="https://bugs.webkit.org/show_bug.cgi?id=154342">154342</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Textarea does not count newlines properly against maxlength
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>Safari 9
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>OS X 10.10
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Forms
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>aaron.nance&#64;pearson.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Hard carriage returns are being counted as 2 characters against the maxlength attribute. For example, if you have a textarea with a maxlength=&quot;20&quot; and type &quot;0123&quot; and press enter, copy all, and paste as much as you can you'd expect the field to contain:

0123(newline)
0123(newline)
0123(newline)
0123(newline)

But what you get is 

0123(newline)
0123(newline)
0123(newline)
01

I've added the (newline) to clarify the newline characters. 

Each newline is being treated as a CR+LF instead of just a LF in the DOM.

This seems to be the same as ID 74686, which is marked as fixed, but still appears to be broken.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>