From 6a048dacf2b98eaa204e2a5a70dc7e3d48d9463a Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Wed, 19 Jun 2024 15:00:51 -0700 Subject: [PATCH] [Fix] ensure `summary` remains non-interactive See 75d5dd7 --- src/util/isInteractiveElement.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/util/isInteractiveElement.js b/src/util/isInteractiveElement.js index 0f9714540..a9e3f9914 100644 --- a/src/util/isInteractiveElement.js +++ b/src/util/isInteractiveElement.js @@ -82,6 +82,12 @@ function checkIsInteractiveElement(tagName, attributes): boolean { && attributesComparator(elementSchema.attributes, attributes) ); } + + // TODO: remove this when aria-query and axobject-query are upgraded + if (tagName === 'summary') { + return false; + } + // Check in elementRoles for inherent interactive role associations for // this element. const isInherentInteractiveElement = some(iterFrom(interactiveElementRoleSchemas), elementSchemaMatcher);