param { HTMLElement } element export default ( element = document ) : HTMLElement [ ] => [ ... element . querySelectorAll < HTMLElement > ( 'a, button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])' ) , ] . filter ( ( el ) => ! el . hasAttribute ( 'disabled' ) ) ;