(element: Element)
| 94 | } |
| 95 | |
| 96 | function isSelectable(element: Element): boolean { |
| 97 | if (isElement(element, 'OPTION')) { |
| 98 | return true; |
| 99 | } |
| 100 | if (isElement(element, 'INPUT')) { |
| 101 | const type = (element as HTMLInputElement).type.toLowerCase(); |
| 102 | return type === 'checkbox' || type === 'radio'; |
| 103 | } |
| 104 | return false; |
| 105 | } |
| 106 | |
| 107 | function isSelected(element: Element): boolean { |
| 108 | if (isElement(element, 'OPTION')) { |
no test coverage detected