set input.value when input element has composition string

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 UTC