* Get implicit ARIA role from element (from roleUtils.ts line 242-260)
(element)
| 141 | * Get implicit ARIA role from element (from roleUtils.ts line 242-260) |
| 142 | */ |
| 143 | function getImplicitAriaRole(element) { |
| 144 | const tagName = element.nodeName; |
| 145 | const roleFunc = kImplicitRoleByTagName[tagName]; |
| 146 | return roleFunc ? roleFunc(element) : null; |
| 147 | } |
| 148 | |
| 149 | /** |
| 150 | * Get ARIA role (explicit or implicit) - from roleUtils.ts lines 281-291 |