src/aria/utils/Html.js
function (element) {
            var submittable = /^(?:input|select|textarea|keygen)/i;
            var submitterTypes = /^(?:submit|button|image|reset|file)$/i;
            var type = element.type;
            var checkableTypes = /^(?:checkbox|radio)$/i;

            return element.name && !element.disabled && submittable.test(element.nodeName)
                    && !submitterTypes.test(type) && (element.checked || !checkableTypes.test(type));
        }
function (element) {
            var submittable = /^(?:input|select|textarea|keygen)/i;
            var submitterTypes = /^(?:submit|button|image|reset|file)$/i;
            var type = element.type;
            var checkableTypes = /^(?:checkbox|radio)$/i;

            return element.name && !element.disabled && submittable.test(element.nodeName)
                    && !submitterTypes.test(type) && (element.checked || !checkableTypes.test(type));
        }
function ( element ) { var submittable = / ^(?:input|select|textarea|keygen) / i ; var submitterTypes = / ^(?:submit|button|image|reset|file)$ / i ; var type = element . type ; var checkableTypes = / ^(?:checkbox|radio)$ / i ; return element . name && ! element . disabled && submittable . test ( element . nodeName ) && ! submitterTypes . test ( type ) && ( element . checked || ! checkableTypes . test ( type ) ) ; }
Return true if the HTML element is serializable in a form. Serializable elements are input, select, textarea,
keygen, which have a name attribute, a certain type, and are not disabled
@param {HTMLElement} element
@return {Boolean}
Return true if the HTML element is serializable in a form . Serializable elements are input select textarea keygen which have a name attribute a certain type and are not disabled