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
Hi,

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?


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


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

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 25 February 2011 06:17:48 GMT