export default function (root: HTMLElement): HTMLElement[] {
return Array.from(root.querySelectorAll('a[href], button, input, textarea, select, details, [tabindex]:not([tabindex="-1"])'))
.filter(elm => !elm.hasAttribute('disabled'))
.filter(elm => !elm.hasAttribute('aria-disabled') || elm.getAttribute('aria-disabled') !== 'true');
}