<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 - an Unreasonable Behavior"
   href="https://bugs.webkit.org/show_bug.cgi?id=145430">145430</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>an Unreasonable Behavior
          </td>
        </tr>

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

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

        <tr>
          <th>Version</th>
          <td>528+ (Nightly build)
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Unspecified
          </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>HTML Editing
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>xinchao.peng&#64;samsung.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Test Case:
&lt;html&gt;
    &lt;head&gt;
        &lt;title&gt;Jasmine Spec Runner&lt;/title&gt;      
&lt;script&gt;

function testchangeime()
{

    var q = document.getElementById(&quot;username&quot;).value;
    document.getElementById(&quot;username&quot;).setSelectionRange(0,q.length);
    var p = q.trim();
    document.getElementById(&quot;username&quot;).value = p;
}
&lt;/script&gt;            
    &lt;/head&gt;
    &lt;body&gt;
         &lt;input type=&quot;text&quot; id=&quot;username&quot;  oninput=&quot;testchangeime()&quot;&gt;
         &lt;/input&gt;
    &lt;/body&gt;
&lt;/html&gt;

When user input &quot;a&quot;  &quot;b&quot;  &quot;c&quot; &quot;d&quot; continuously,the value of input is &quot;abcd&quot;. 
But i think the value of input should be  &quot;d&quot;.</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>