<!DOCTYPE html>
<html>
<body onload="init()" spellcheck="false">
    <input class="spell-checked" type="text" value="blahblahblah">
    <script>
      function init() {
        document.body.setAttribute("spellcheck", "true");
      }
    </script>
</body>
</html>