Skip to content

Commit

Permalink
update test and add note
Browse files Browse the repository at this point in the history
  • Loading branch information
khiga8 authored and ljharb committed Sep 4, 2024
1 parent f842fde commit 67210fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,7 @@ const neverValid = [
{ code: '<select className="foo" role="listitem" />', errors: [expectedError] },
{ code: '<textarea className="foo" role="listitem" />', errors: [expectedError] },
{ code: '<tr role="listitem" />;', errors: [expectedError] },
{ code: '<summary role="listitem" />;', errors: [expectedError] },
/* Custom elements */
{ code: '<Link href="http://x.y.z" role="img" />', errors: [expectedError], settings: componentsSettings },
];
Expand Down
5 changes: 4 additions & 1 deletion src/util/isInteractiveElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,10 @@ function checkIsInteractiveElement(tagName, attributes): boolean {
}
// Check in elementAXObjects for AX Tree associations for this element.
const isInteractiveAXElement = some(iterFrom(interactiveElementAXObjectSchemas), elementSchemaMatcher);
if (isInteractiveAXElement) {
if (
isInteractiveAXElement
|| tagName === 'summary' // TODO: Remove this hard-coded addition once axobject-query is updated.
) {
return true;
}

Expand Down

0 comments on commit 67210fc

Please sign in to comment.