* @param {Element} element - * @returns {boolean | undefined} - false/true if (not)expanded, undefined if not expand-able
(element)
| 300 | * @returns {boolean | undefined} - false/true if (not)expanded, undefined if not expand-able |
| 301 | */ |
| 302 | function computeAriaExpanded(element) { |
| 303 | // https://www.w3.org/TR/wai-aria-1.1/#aria-expanded |
| 304 | return checkBooleanAttribute(element, 'aria-expanded') |
| 305 | } |
| 306 | |
| 307 | function checkBooleanAttribute(element, attribute) { |
| 308 | const attributeValue = element.getAttribute(attribute) |
no test coverage detected