var input = document.querySelectorAll('input');
for(var i = 0;i < input.length; i++){
input[i].addEventListener('input',function(e){result(e, this.value)},false);
}
function result(e, value){
inner = e.target.previousSibling;
inner.innerText = value;
}
'ё'.normalize('NFC').length == 1
- true'ё'.normalize('NFD').length == 2
- true