Disable spellcheck in textarea, set wrap property instead of attribute

This commit is contained in:
DanyaPostfactum 2012-10-02 00:37:56 +10:00
commit 5e5d122332

View file

@ -46,7 +46,8 @@ var TextInput = function(parentNode, host) {
if (useragent.isTouchPad)
text.setAttribute("x-palm-disable-auto-cap", true);
text.setAttribute("wrap", "off");
text.wrap = "off";
text.spellcheck = false;
text.style.top = "-2em";
parentNode.insertBefore(text, parentNode.firstChild);