JSFiddle - React, Tailwind, and code Playground

HTML

<tt>try 'арина@foo.com'</tt>
<input type="email" id="test" />

JavaScript

var result = document.createElement('pre');
var text = document.createTextNode('');
result.appendChild(text);
document.body.appendChild(result);

function log() {
  text.data = '"' + test.value + '"';
}

if (test.addEventListener) {
  test.addEventListener("input", log);
  test.addEventListener("change", log);
} else if (test.attachEvent) {
  test.attachEvent("oninput", log);
  test.attachEvent("onchange", log);
}