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