code: function(element) {
      if('TEXTAREA'===element.nodeName
        ||('INPUT'===element.nodeName&&element.hasAttribute('type')
          &&('text'===element.getAttribute('type')
            ||'number'===element.getAttribute('type'))
        )
      ) {
        return true;
      }
      return false;
    }
docs: Tell if the element content can be partially selected