From eb8484ef7cc4e0c9c721ff7bacd57db2b269f670 Mon Sep 17 00:00:00 2001 From: WilcoFiers Date: Fri, 7 Feb 2025 13:39:07 +0000 Subject: [PATCH] Updated ARIA state or property is permitted [5c01ea]: clarified global property is allowed except when prohibited and added examples (#2192) * Update aria-state-or-property-permitted-5c01ea.md * Update aria-state-or-property-permitted-5c01ea.md * Update aria-state-or-property-permitted-5c01ea.md * Update spelling-ignore.yml added superclass * Apply suggestions from code review --------- Co-authored-by: Wilco Fiers Co-authored-by: Jean-Yves Moyen --- content-assets/wcag-act-rules/testcases.json | 95 ++++++++++++++++++- ...0908133ee63545a20ea45952de6f7d6cf845b.html | 9 ++ ...d6c53dd58121d0182d2498a104776da424e21.html | 16 ++++ ...abccf6e01bca36ee87a2af00e9d7a63a7d615.html | 9 ++ content/rules/5c01ea/proposed.md | 45 ++++++++- 5 files changed, 169 insertions(+), 5 deletions(-) create mode 100644 content-assets/wcag-act-rules/testcases/5c01ea/2c80908133ee63545a20ea45952de6f7d6cf845b.html create mode 100644 content-assets/wcag-act-rules/testcases/5c01ea/da2d6c53dd58121d0182d2498a104776da424e21.html create mode 100644 content-assets/wcag-act-rules/testcases/5c01ea/eedabccf6e01bca36ee87a2af00e9d7a63a7d615.html diff --git a/content-assets/wcag-act-rules/testcases.json b/content-assets/wcag-act-rules/testcases.json index 081f106e9..1d2a28ca6 100644 --- a/content-assets/wcag-act-rules/testcases.json +++ b/content-assets/wcag-act-rules/testcases.json @@ -3,7 +3,7 @@ "website": "https://www.w3.org/WAI/standards-guidelines/act/rules/", "license": "https://act-rules.github.io/pages/license/", "description": "Accessibility conformance testing rules for HTML", - "count": 1166, + "count": 1169, "testcases": [ { "ruleId": "674b10", @@ -14725,6 +14725,68 @@ "url": "https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/5c01ea/0401164ef77abe96fd6502d35ed04952a057a8fe.html", "rulePage": "https://www.w3.org/WAI/standards-guidelines/act/rules/5c01ea/proposed/" }, + { + "ruleId": "5c01ea", + "ruleName": "ARIA state or property is permitted", + "ruleAccessibilityRequirements": { + "wcag-technique:ARIA5": { + "forConformance": false, + "failed": "not satisfied", + "passed": "further testing needed", + "inapplicable": "further testing needed" + }, + "aria12:state_property_processing": { + "title": "ARIA 1.2, 8.6 State and Property Attribute Processing", + "forConformance": true, + "failed": "not satisfied", + "passed": "satisfied", + "inapplicable": "satisfied" + }, + "wcag20:1.3.1": { + "secondary": "This success criterion is **less strict** than this rule. This is because the rule does not ignore irrelevant ARIA properties. Some of the failed examples satisfy this success criterion." + }, + "wcag20:4.1.2": { + "secondary": "This success criterion is **less strict** than this rule. This is because the rule does not ignore irrelevant ARIA properties. Some of the failed examples satisfy this success criterion." + } + }, + "expected": "passed", + "testcaseId": "da2d6c53dd58121d0182d2498a104776da424e21", + "testcaseTitle": "Passed Example 12", + "relativePath": "testcases/5c01ea/da2d6c53dd58121d0182d2498a104776da424e21.html", + "url": "https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/5c01ea/da2d6c53dd58121d0182d2498a104776da424e21.html", + "rulePage": "https://www.w3.org/WAI/standards-guidelines/act/rules/5c01ea/proposed/" + }, + { + "ruleId": "5c01ea", + "ruleName": "ARIA state or property is permitted", + "ruleAccessibilityRequirements": { + "wcag-technique:ARIA5": { + "forConformance": false, + "failed": "not satisfied", + "passed": "further testing needed", + "inapplicable": "further testing needed" + }, + "aria12:state_property_processing": { + "title": "ARIA 1.2, 8.6 State and Property Attribute Processing", + "forConformance": true, + "failed": "not satisfied", + "passed": "satisfied", + "inapplicable": "satisfied" + }, + "wcag20:1.3.1": { + "secondary": "This success criterion is **less strict** than this rule. This is because the rule does not ignore irrelevant ARIA properties. Some of the failed examples satisfy this success criterion." + }, + "wcag20:4.1.2": { + "secondary": "This success criterion is **less strict** than this rule. This is because the rule does not ignore irrelevant ARIA properties. Some of the failed examples satisfy this success criterion." + } + }, + "expected": "passed", + "testcaseId": "2c80908133ee63545a20ea45952de6f7d6cf845b", + "testcaseTitle": "Passed Example 13", + "relativePath": "testcases/5c01ea/2c80908133ee63545a20ea45952de6f7d6cf845b.html", + "url": "https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/5c01ea/2c80908133ee63545a20ea45952de6f7d6cf845b.html", + "rulePage": "https://www.w3.org/WAI/standards-guidelines/act/rules/5c01ea/proposed/" + }, { "ruleId": "5c01ea", "ruleName": "ARIA state or property is permitted", @@ -14818,6 +14880,37 @@ "url": "https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/5c01ea/d7efe21b64461052aef8d3e0fc96049dda787039.html", "rulePage": "https://www.w3.org/WAI/standards-guidelines/act/rules/5c01ea/proposed/" }, + { + "ruleId": "5c01ea", + "ruleName": "ARIA state or property is permitted", + "ruleAccessibilityRequirements": { + "wcag-technique:ARIA5": { + "forConformance": false, + "failed": "not satisfied", + "passed": "further testing needed", + "inapplicable": "further testing needed" + }, + "aria12:state_property_processing": { + "title": "ARIA 1.2, 8.6 State and Property Attribute Processing", + "forConformance": true, + "failed": "not satisfied", + "passed": "satisfied", + "inapplicable": "satisfied" + }, + "wcag20:1.3.1": { + "secondary": "This success criterion is **less strict** than this rule. This is because the rule does not ignore irrelevant ARIA properties. Some of the failed examples satisfy this success criterion." + }, + "wcag20:4.1.2": { + "secondary": "This success criterion is **less strict** than this rule. This is because the rule does not ignore irrelevant ARIA properties. Some of the failed examples satisfy this success criterion." + } + }, + "expected": "failed", + "testcaseId": "eedabccf6e01bca36ee87a2af00e9d7a63a7d615", + "testcaseTitle": "Failed Example 4", + "relativePath": "testcases/5c01ea/eedabccf6e01bca36ee87a2af00e9d7a63a7d615.html", + "url": "https://www.w3.org/WAI/content-assets/wcag-act-rules/testcases/5c01ea/eedabccf6e01bca36ee87a2af00e9d7a63a7d615.html", + "rulePage": "https://www.w3.org/WAI/standards-guidelines/act/rules/5c01ea/proposed/" + }, { "ruleId": "5c01ea", "ruleName": "ARIA state or property is permitted", diff --git a/content-assets/wcag-act-rules/testcases/5c01ea/2c80908133ee63545a20ea45952de6f7d6cf845b.html b/content-assets/wcag-act-rules/testcases/5c01ea/2c80908133ee63545a20ea45952de6f7d6cf845b.html new file mode 100644 index 000000000..3c718f385 --- /dev/null +++ b/content-assets/wcag-act-rules/testcases/5c01ea/2c80908133ee63545a20ea45952de6f7d6cf845b.html @@ -0,0 +1,9 @@ + + + + Passed Example 13 + + +
My separator
+ + \ No newline at end of file diff --git a/content-assets/wcag-act-rules/testcases/5c01ea/da2d6c53dd58121d0182d2498a104776da424e21.html b/content-assets/wcag-act-rules/testcases/5c01ea/da2d6c53dd58121d0182d2498a104776da424e21.html new file mode 100644 index 000000000..0f271eb2e --- /dev/null +++ b/content-assets/wcag-act-rules/testcases/5c01ea/da2d6c53dd58121d0182d2498a104776da424e21.html @@ -0,0 +1,16 @@ + + + + Passed Example 12 + + +
+ Notifications + + + + + +
+ + \ No newline at end of file diff --git a/content-assets/wcag-act-rules/testcases/5c01ea/eedabccf6e01bca36ee87a2af00e9d7a63a7d615.html b/content-assets/wcag-act-rules/testcases/5c01ea/eedabccf6e01bca36ee87a2af00e9d7a63a7d615.html new file mode 100644 index 000000000..a095b57d1 --- /dev/null +++ b/content-assets/wcag-act-rules/testcases/5c01ea/eedabccf6e01bca36ee87a2af00e9d7a63a7d615.html @@ -0,0 +1,9 @@ + + + + Failed Example 4 + + +
+ + \ No newline at end of file diff --git a/content/rules/5c01ea/proposed.md b/content/rules/5c01ea/proposed.md index e62a42d04..103a306bb 100644 --- a/content/rules/5c01ea/proposed.md +++ b/content/rules/5c01ea/proposed.md @@ -9,7 +9,7 @@ github: feedbackmail: public-wcag-act@w3.org footer: |

Rule Identifier: 5c01ea

-

Date: Updated 2 December 2024

+

Date: Updated 7 February 2025

Authors: Anne Thyme Nørregaard, Jean-Yves Moyen. Contributors: Participants of the ACT Rules Community Group (CG).

This rule was written in the ACT Rules Community Group. It is written as part of the EU-funded WAI-Tools Project. Implementations are part of the EU funded WAI-CooP Project. It will be reviewed by the Accessibility Guidelines Working Group (AG WG).

@@ -22,7 +22,7 @@ rule_meta: original_file: aria-state-or-property-permitted-5c01ea.md description: | This rule checks that WAI-ARIA states or properties are allowed for the element they are specified on. - last_modified: 2 December 2024 + last_modified: 7 February 2025 --- ## Applicability @@ -156,7 +156,7 @@ The `aria-busy` [state][] is a [global][] [state][] that is [supported][] by all Open in a new tab -The `aria-label` [property][] is a [global][] [property][]. It is allowed on any [semantic role][]. +The `aria-label` [property][] is a [global][] [property][]. It is allowed on any [semantic role][], except where specifically prohibited. ```html
@@ -206,7 +206,7 @@ The `aria-controls` [property][] is [required][] for the [semantic][semantic rol Open in a new tab -The `aria-label` [property][] is [global][]. It is allowed on any [semantic role][], including roles from the [WAI-ARIA Graphics Module](https://www.w3.org/TR/graphics-aria-1.0). This rule is applicable to SVG elements. +The `aria-label` [property][] is [global][]. It is allowed on any [semantic role][], except where specifically prohibited, including roles from the [WAI-ARIA Graphics Module](https://www.w3.org/TR/graphics-aria-1.0). This rule is applicable to SVG elements. ```html @@ -234,6 +234,33 @@ This `input` element does not have an [explicit role][] of `textbox`, but the `a ``` +#### Passed Example 12 + +Open in a new tab + +This `div` element has an [explicit role][] of `switch`; the `aria-required` [property][] is [inherited][] from the `checkbox` [superclass role](https://www.w3.org/TR/wai-aria-1.2/#superclassrole). + +```html +
+ Notifications + + + + + +
+``` + +#### Passed Example 13 + +Open in a new tab + +This `div` element has an [explicit role][] of `separator`. The `aria-valuemin`, `aria-valuemax` and `aria-valuenow` [properties][property] are [supported][] for the `separator` role when the element is [focusable][]. + +```html +
My separator
+``` + ### Failed #### Failed Example 1 @@ -266,6 +293,16 @@ The `aria-label` property is [prohibited][] for an element with a `generic` role
``` +#### Failed Example 4 + +Open in a new tab + +The `aria-label` property is [prohibited][] for an element with a `paragraph` role. + +```html +
+``` + ### Inapplicable #### Inapplicable Example 1