W3C home > Mailing lists > Public > www-international@w3.org > January to March 2011

set input.value when input element has composition string

From: Makoto Kato <m_kato@ga2.so-net.ne.jp>
Date: Fri, 25 Feb 2011 15:16:34 +0900
Message-ID: <4D674942.9010804@ga2.so-net.ne.jp>
To: whatwg@whatwg.org
CC: www-international@w3.org

This is simple sample.  This behavior is different on all web browsers 
when input element has composition/preedit string for IME.

If input element has composition string by IME, should it cancel 
composition string and set value by script?  Or should it cancel setting 
value since it has composition string?

function setvalue() {
   document.getElementById('test').value = "replaced";
<body onload="setTimeout('setvalue()',5000)">
<input type="text" id="test"/>

-- Makoto Kato
Received on Friday, 25 February 2011 06:17:47 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 21 September 2016 22:37:32 UTC