diff --git a/accessibility-checker-engine/src/v2/aria/ARIADefinitions.ts b/accessibility-checker-engine/src/v2/aria/ARIADefinitions.ts index c8b040852..d685f2d26 100644 --- a/accessibility-checker-engine/src/v2/aria/ARIADefinitions.ts +++ b/accessibility-checker-engine/src/v2/aria/ARIADefinitions.ts @@ -1710,6 +1710,7 @@ export class ARIADefinitions { "body": { implicitRole: ["generic"], validRoles: null, + otherDisallowedAriaAttributes: ['aria-hidden'], globalAriaAttributesValid: true }, "br": { @@ -2051,6 +2052,11 @@ export class ARIADefinitions { validRoles: null, globalAriaAttributesValid: false }, + "search": { + implicitRole: ['search'], + validRoles: ['search', 'form', 'group', 'none', 'presentation', 'region'], + globalAriaAttributesValid: true + }, "slot": { implicitRole: null, validRoles: null, diff --git a/accessibility-checker-engine/test/v2/checker/accessibility/rules/aria_semantics_role_ruleunit/body_attribute.html b/accessibility-checker-engine/test/v2/checker/accessibility/rules/aria_semantics_role_ruleunit/body_attribute.html new file mode 100644 index 000000000..618f45fc2 --- /dev/null +++ b/accessibility-checker-engine/test/v2/checker/accessibility/rules/aria_semantics_role_ruleunit/body_attribute.html @@ -0,0 +1,40 @@ + + + + Sandbox + + + + +
+

Test page

+
+ + + diff --git a/accessibility-checker-engine/test/v2/checker/accessibility/rules/aria_semantics_role_ruleunit/search_role_attribute.html b/accessibility-checker-engine/test/v2/checker/accessibility/rules/aria_semantics_role_ruleunit/search_role_attribute.html new file mode 100644 index 000000000..ad35b39c8 --- /dev/null +++ b/accessibility-checker-engine/test/v2/checker/accessibility/rules/aria_semantics_role_ruleunit/search_role_attribute.html @@ -0,0 +1,175 @@ + + + + Sandbox + + + + +
+ + + + + + + + +
+ + +