<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - When the value of input isnot changed , selection range shouldnot be changed"
   href="https://bugs.webkit.org/show_bug.cgi?id=145430#c13">Comment # 13</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - When the value of input isnot changed , selection range shouldnot be changed"
   href="https://bugs.webkit.org/show_bug.cgi?id=145430">bug 145430</a>
              from <span class="vcard"><a class="email" href="mailto:xinchao.peng&#64;samsung.com" title="Peng Xinchao &lt;xinchao.peng&#64;samsung.com&gt;"> <span class="fn">Peng Xinchao</span></a>
</span></b>
        <pre>It happened with IME of PreEdit .
Example :
&lt;input type=&quot;text&quot; id=&quot;username&quot;  oninput=&quot;testchangeime()&quot;&gt; &lt;/input&gt;
&lt;script&gt;
function testchangeime(){    
    var q = document.getElementById(&quot;username&quot;).value;
    var p = q.trim();
    document.getElementById(&quot;username&quot;).value = p;
}
&lt;/script&gt;

When user input 'a' with IME ,the status of 'a' is PreEdit .
But if testchangeime() is called , the status of 'a' will become PreEdit to NoPreEdit.</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>