lib/rules/aria-hidden-focus-matches.js
function shouldMatchElement(el) {
	if (!el) {
		return true;
	}
	if (el.getAttribute('aria-hidden') === 'true') {
		return false;
	}
	return shouldMatchElement(getComposedParent(el));
}
function shouldMatchElement(el) {
	if (!el) {
		return true;
	}
	if (el.getAttribute('aria-hidden') === 'true') {
		return false;
	}
	return shouldMatchElement(getComposedParent(el));
}
function shouldMatchElement ( el ) { if ( ! el ) { return true ; } if ( el . getAttribute ( 'aria-hidden' ) === 'true' ) { return false ; } return shouldMatchElement ( getComposedParent ( el ) ) ; }
Only match the outer-most `aria-hidden=true` element
@param {HTMLElement} el the HTMLElement to verify
@return {Boolean}
Only match the outer - most aria - hidden = true element