fix #133

* use `input.value = value` to replace `input.setAttribute('value', value)`
* use `textarea.value = value` to replace `textarea.contentText = value`