Sha256: 5f21bd20a4aa7b9431936e469245eac05d62a4d6c4021ee12c51ec8d84d037a6
Contents?: true
Size: 554 Bytes
Versions: 271
Compression:
Stored size: 554 Bytes
Contents
/* global forms */ const nonTextInputTypes = [ 'button', 'checkbox', 'color', 'file', 'hidden', 'image', 'password', 'radio', 'reset', 'submit' ]; /** * Determines if an element is a native textbox element * @method isNativeTextbox * @memberof axe.commons.forms * @param {Element} node Node to determine if textbox * @returns {Bool} */ forms.isNativeTextbox = function(node) { const nodeName = node.nodeName.toUpperCase(); return ( nodeName === 'TEXTAREA' || (nodeName === 'INPUT' && !nonTextInputTypes.includes(node.type)) ); };
Version data entries
271 entries across 271 versions & 1 rubygems