From 61f282ce60caf2e9b7580036cf6c15aefe967ba3 Mon Sep 17 00:00:00 2001 From: Aron Janecki Date: Sun, 16 May 2021 19:26:48 +0100 Subject: [PATCH 1/8] Update aria-state-or-property-permitted-5c01ea.md --- ...aria-state-or-property-permitted-5c01ea.md | 26 ++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/_rules/aria-state-or-property-permitted-5c01ea.md b/_rules/aria-state-or-property-permitted-5c01ea.md index 06223184130..5e9f069528d 100755 --- a/_rules/aria-state-or-property-permitted-5c01ea.md +++ b/_rules/aria-state-or-property-permitted-5c01ea.md @@ -32,9 +32,7 @@ This rule applies to any [WAI-ARIA state or property][] that is specified on an ## Expectation -Each test target is either an [inherited][], [supported][], or [required][] [state][] or [property][] of the [semantic role][] of the element on which the attribute is specified. If the element has no [semantic role][], the attribute must be a [global state or property][global]. - -**Note:** Assessing the value of the attribute is out of scope for this rule. +Each test target is either an [inherited][], [supported][], or [required][] [state][] or [property][] for the element's [semantic role][] or the [WAI-ARIA state or property][] may be used on the language feature. If the element has no [semantic role][], the attribute must be a [global state or property][global]. ## Assumptions @@ -46,12 +44,17 @@ Implementation of [Presentational Roles Conflict Resolution][] varies from one b ## Background +In HTML, there are language features that do not have corresponding implicit WAI-ARIA semantics. As per [ARIA in HTML Editor's Draft](https://w3c.github.io/html-aria/), those elements can have [global states or properties][global]. Some of those elements can also have [inherited][], [supported][], or [required][] [states][state] or [properties][property] that correspond to a [WAI-ARIA role](https://www.w3.org/TR/wai-aria-1.1/#usage_intro). For example, `audio` has no corresponding ARIA semantics but it can have [inherited][], [supported][], or [required][] [states][state] or [properties][property] of the [`application` role](https://www.w3.org/TR/wai-aria-1.1/#application). + +Assessing the value of the attribute is out of scope for this rule. + - [ARIA state or property has valid value](https://act-rules.github.io/rules/6a7281) - [Understanding Success Criterion 4.1.1: Parsing](https://www.w3.org/WAI/WCAG21/Understanding/parsing.html) - [Understanding Success Criterion 4.1.2: Name, Role, Value](https://www.w3.org/WAI/WCAG21/Understanding/name-role-value.html) - [WAI-ARIA 1.1, Supported States and Properties](https://www.w3.org/TR/wai-aria-1.1/#states_and_properties) - [WAI-ARIA 1.1, Global States and Properties](https://www.w3.org/TR/wai-aria-1.1/#global_states) - [ARIA5: Using WAI-ARIA state and property attributes to expose the state of a user interface component](https://www.w3.org/WAI/WCAG21/Techniques/aria/ARIA5) +- [Document conformance requirements for use of ARIA attributes in HTML](https://w3c.github.io/html-aria/#docconformance) ## Test Cases @@ -139,6 +142,14 @@ This `button` element has an [explicit role][] of `none`. However, it is [focusa ``` +#### Passed Example 11 + +This `input` element does not have an [explicit role][] of `textbox`, but the `aria-required` property may be used on such language feature. + +```html + +``` + ### Failed #### Failed Example 1 @@ -149,6 +160,14 @@ The `aria-sort` [property][] is neither [inherited][], [supported][], nor [requi ``` +#### Failed Example 2 + +The `aria-orientation` property may not be used on `audio` element, nor it can be used on `application` (the [semantic role][] for which [inherited][], [supported][], or [required][] [states][state] or [properties][property] are also applicable to `audio` element). + +```html + +``` + ### Inapplicable #### Inapplicable Example 1 @@ -176,6 +195,7 @@ This `div` element is not [included in the accessibility tree][], hence its [WAI [presentational roles conflict resolution]: https://www.w3.org/TR/wai-aria-1.1/#conflict_resolution_presentation_none 'Presentational Roles Conflict Resolution' [property]: https://www.w3.org/TR/wai-aria/#dfn-property 'Definition of ARIA Property' [required]: https://www.w3.org/TR/wai-aria/#requiredState 'Definition of Required ARIA States and Properties' +[role]: https://www.w3.org/TR/core-aam/#dfn-role [semantic role]: #semantic-role 'Definition of Semantic Role' [state]: https://www.w3.org/TR/wai-aria/#dfn-state 'Definition of ARIA State' [supported]: https://www.w3.org/TR/wai-aria/#supportedState 'Definition of Supported ARIA States and Properties' From 5124b01dbdd33eac845ccc9a662c1480e1a39a99 Mon Sep 17 00:00:00 2001 From: Aron Janecki Date: Sun, 16 May 2021 21:23:36 +0100 Subject: [PATCH 2/8] Update aria-state-or-property-permitted-5c01ea.md --- _rules/aria-state-or-property-permitted-5c01ea.md | 1 - 1 file changed, 1 deletion(-) diff --git a/_rules/aria-state-or-property-permitted-5c01ea.md b/_rules/aria-state-or-property-permitted-5c01ea.md index 5e9f069528d..9645386f1a9 100755 --- a/_rules/aria-state-or-property-permitted-5c01ea.md +++ b/_rules/aria-state-or-property-permitted-5c01ea.md @@ -195,7 +195,6 @@ This `div` element is not [included in the accessibility tree][], hence its [WAI [presentational roles conflict resolution]: https://www.w3.org/TR/wai-aria-1.1/#conflict_resolution_presentation_none 'Presentational Roles Conflict Resolution' [property]: https://www.w3.org/TR/wai-aria/#dfn-property 'Definition of ARIA Property' [required]: https://www.w3.org/TR/wai-aria/#requiredState 'Definition of Required ARIA States and Properties' -[role]: https://www.w3.org/TR/core-aam/#dfn-role [semantic role]: #semantic-role 'Definition of Semantic Role' [state]: https://www.w3.org/TR/wai-aria/#dfn-state 'Definition of ARIA State' [supported]: https://www.w3.org/TR/wai-aria/#supportedState 'Definition of Supported ARIA States and Properties' From 011ea1198fad2411571d592267f45fb72a23d722 Mon Sep 17 00:00:00 2001 From: Aron Janecki Date: Mon, 31 May 2021 23:55:35 +0100 Subject: [PATCH 3/8] Update aria-state-or-property-permitted-5c01ea.md --- _rules/aria-state-or-property-permitted-5c01ea.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/_rules/aria-state-or-property-permitted-5c01ea.md b/_rules/aria-state-or-property-permitted-5c01ea.md index 9645386f1a9..84a750a0682 100755 --- a/_rules/aria-state-or-property-permitted-5c01ea.md +++ b/_rules/aria-state-or-property-permitted-5c01ea.md @@ -32,7 +32,11 @@ This rule applies to any [WAI-ARIA state or property][] that is specified on an ## Expectation -Each test target is either an [inherited][], [supported][], or [required][] [state][] or [property][] for the element's [semantic role][] or the [WAI-ARIA state or property][] may be used on the language feature. If the element has no [semantic role][], the attribute must be a [global state or property][global]. +One of the following is true for each test target: + +- **Global**: the test target is a [global state or property][global]; or +- **Semantic Role**: the test target is an [inherited][], [supported][], or [required][] [state][] or [property][] of the [semantic role][] of the element on which the test target is specified; or +- **language feature**: for an HTML element, the test target is allowed on the element on which it is specified. Which ARIA state or property may be used on which element is described in [ARIA in HTML](https://w3c.github.io/html-aria/). ## Assumptions From 1b51cd6b83556f599b2fb3742755f025f04eaf73 Mon Sep 17 00:00:00 2001 From: Aron Janecki Date: Thu, 3 Jun 2021 16:46:54 +0100 Subject: [PATCH 4/8] Update _rules/aria-state-or-property-permitted-5c01ea.md Co-authored-by: Jean-Yves Moyen --- _rules/aria-state-or-property-permitted-5c01ea.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_rules/aria-state-or-property-permitted-5c01ea.md b/_rules/aria-state-or-property-permitted-5c01ea.md index 84a750a0682..58bc038039f 100755 --- a/_rules/aria-state-or-property-permitted-5c01ea.md +++ b/_rules/aria-state-or-property-permitted-5c01ea.md @@ -36,7 +36,7 @@ One of the following is true for each test target: - **Global**: the test target is a [global state or property][global]; or - **Semantic Role**: the test target is an [inherited][], [supported][], or [required][] [state][] or [property][] of the [semantic role][] of the element on which the test target is specified; or -- **language feature**: for an HTML element, the test target is allowed on the element on which it is specified. Which ARIA state or property may be used on which element is described in [ARIA in HTML](https://w3c.github.io/html-aria/). +- **language feature**: the test target is specified on an HTML element and is allowed on that element. Which ARIA states or properties may be used on which element is described in [ARIA in HTML](https://w3c.github.io/html-aria/). ## Assumptions From e0d3076a0d96d001ca3e58df4d8b38c9cf8cf840 Mon Sep 17 00:00:00 2001 From: Aron Janecki Date: Thu, 3 Jun 2021 16:48:42 +0100 Subject: [PATCH 5/8] Update _rules/aria-state-or-property-permitted-5c01ea.md Co-authored-by: Jean-Yves Moyen --- _rules/aria-state-or-property-permitted-5c01ea.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_rules/aria-state-or-property-permitted-5c01ea.md b/_rules/aria-state-or-property-permitted-5c01ea.md index 58bc038039f..594a680f93b 100755 --- a/_rules/aria-state-or-property-permitted-5c01ea.md +++ b/_rules/aria-state-or-property-permitted-5c01ea.md @@ -148,7 +148,7 @@ This `button` element has an [explicit role][] of `none`. However, it is [focusa #### Passed Example 11 -This `input` element does not have an [explicit role][] of `textbox`, but the `aria-required` property may be used on such language feature. +This `input` element does not have an [explicit role][] of `textbox`, but the `aria-required` property may be used `input` element with a `type` [attribute value][] of `password`. ```html From e3ef476816edc5518dc304a7968df4360b6120bb Mon Sep 17 00:00:00 2001 From: Aron Janecki Date: Thu, 3 Jun 2021 16:51:21 +0100 Subject: [PATCH 6/8] Update _rules/aria-state-or-property-permitted-5c01ea.md Co-authored-by: Wilco Fiers --- _rules/aria-state-or-property-permitted-5c01ea.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_rules/aria-state-or-property-permitted-5c01ea.md b/_rules/aria-state-or-property-permitted-5c01ea.md index 594a680f93b..a2e1a4983cf 100755 --- a/_rules/aria-state-or-property-permitted-5c01ea.md +++ b/_rules/aria-state-or-property-permitted-5c01ea.md @@ -32,7 +32,7 @@ This rule applies to any [WAI-ARIA state or property][] that is specified on an ## Expectation -One of the following is true for each test target: +For each test target, one of the following is true: - **Global**: the test target is a [global state or property][global]; or - **Semantic Role**: the test target is an [inherited][], [supported][], or [required][] [state][] or [property][] of the [semantic role][] of the element on which the test target is specified; or From c600373dd13971ec35853f9c31a4d770a41afb8d Mon Sep 17 00:00:00 2001 From: Aron Janecki Date: Thu, 3 Jun 2021 16:56:30 +0100 Subject: [PATCH 7/8] Update aria-state-or-property-permitted-5c01ea.md --- _rules/aria-state-or-property-permitted-5c01ea.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/_rules/aria-state-or-property-permitted-5c01ea.md b/_rules/aria-state-or-property-permitted-5c01ea.md index a2e1a4983cf..1ab1b217f18 100755 --- a/_rules/aria-state-or-property-permitted-5c01ea.md +++ b/_rules/aria-state-or-property-permitted-5c01ea.md @@ -34,8 +34,8 @@ This rule applies to any [WAI-ARIA state or property][] that is specified on an For each test target, one of the following is true: -- **Global**: the test target is a [global state or property][global]; or -- **Semantic Role**: the test target is an [inherited][], [supported][], or [required][] [state][] or [property][] of the [semantic role][] of the element on which the test target is specified; or +- **global**: the test target is a [global state or property][global]; or +- **semantic Role**: the test target is an [inherited][], [supported][], or [required][] [state][] or [property][] of the [semantic role][] of the element on which the test target is specified; or - **language feature**: the test target is specified on an HTML element and is allowed on that element. Which ARIA states or properties may be used on which element is described in [ARIA in HTML](https://w3c.github.io/html-aria/). ## Assumptions @@ -48,7 +48,7 @@ Implementation of [Presentational Roles Conflict Resolution][] varies from one b ## Background -In HTML, there are language features that do not have corresponding implicit WAI-ARIA semantics. As per [ARIA in HTML Editor's Draft](https://w3c.github.io/html-aria/), those elements can have [global states or properties][global]. Some of those elements can also have [inherited][], [supported][], or [required][] [states][state] or [properties][property] that correspond to a [WAI-ARIA role](https://www.w3.org/TR/wai-aria-1.1/#usage_intro). For example, `audio` has no corresponding ARIA semantics but it can have [inherited][], [supported][], or [required][] [states][state] or [properties][property] of the [`application` role](https://www.w3.org/TR/wai-aria-1.1/#application). +In HTML, there are language features that do not have corresponding implicit WAI-ARIA semantics. As per [ARIA in HTML Editor's Draft](https://www.w3.org/TR/html-aria/), those elements can have [global states or properties][global]. Some of those elements can also have [inherited][], [supported][], or [required][] [states][state] or [properties][property] that correspond to a [WAI-ARIA role](https://www.w3.org/TR/wai-aria-1.1/#usage_intro). For example, `audio` has no corresponding ARIA semantics but it can have [inherited][], [supported][], or [required][] [states][state] or [properties][property] of the [`application` role](https://www.w3.org/TR/wai-aria-1.1/#application). Assessing the value of the attribute is out of scope for this rule. @@ -58,7 +58,7 @@ Assessing the value of the attribute is out of scope for this rule. - [WAI-ARIA 1.1, Supported States and Properties](https://www.w3.org/TR/wai-aria-1.1/#states_and_properties) - [WAI-ARIA 1.1, Global States and Properties](https://www.w3.org/TR/wai-aria-1.1/#global_states) - [ARIA5: Using WAI-ARIA state and property attributes to expose the state of a user interface component](https://www.w3.org/WAI/WCAG21/Techniques/aria/ARIA5) -- [Document conformance requirements for use of ARIA attributes in HTML](https://w3c.github.io/html-aria/#docconformance) +- [Document conformance requirements for use of ARIA attributes in HTML](https://www.w3.org/TR/html-aria/#docconformance) ## Test Cases @@ -148,7 +148,7 @@ This `button` element has an [explicit role][] of `none`. However, it is [focusa #### Passed Example 11 -This `input` element does not have an [explicit role][] of `textbox`, but the `aria-required` property may be used `input` element with a `type` [attribute value][] of `password`. +This `input` element does not have an [explicit role][] of `textbox`, but the `aria-required` property may be used on an `input` element with a `type` [attribute value][] of `password`. ```html From 442623ee013b6b278539e1978573595e02135044 Mon Sep 17 00:00:00 2001 From: Aron Janecki Date: Thu, 3 Jun 2021 17:05:33 +0100 Subject: [PATCH 8/8] Update aria-state-or-property-permitted-5c01ea.md --- _rules/aria-state-or-property-permitted-5c01ea.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/_rules/aria-state-or-property-permitted-5c01ea.md b/_rules/aria-state-or-property-permitted-5c01ea.md index 1ab1b217f18..703c1aed390 100755 --- a/_rules/aria-state-or-property-permitted-5c01ea.md +++ b/_rules/aria-state-or-property-permitted-5c01ea.md @@ -48,7 +48,7 @@ Implementation of [Presentational Roles Conflict Resolution][] varies from one b ## Background -In HTML, there are language features that do not have corresponding implicit WAI-ARIA semantics. As per [ARIA in HTML Editor's Draft](https://www.w3.org/TR/html-aria/), those elements can have [global states or properties][global]. Some of those elements can also have [inherited][], [supported][], or [required][] [states][state] or [properties][property] that correspond to a [WAI-ARIA role](https://www.w3.org/TR/wai-aria-1.1/#usage_intro). For example, `audio` has no corresponding ARIA semantics but it can have [inherited][], [supported][], or [required][] [states][state] or [properties][property] of the [`application` role](https://www.w3.org/TR/wai-aria-1.1/#application). +In HTML, there are language features that do not have corresponding implicit WAI-ARIA semantics. As per [ARIA in HTML Editor's Draft](https://www.w3.org/TR/html-aria/), those elements can have [global states or properties][global]. Some of those elements can also have [inherited][], [supported][], or [required][] [states][state] or [properties][property] that correspond to a [WAI-ARIA role](https://www.w3.org/TR/wai-aria-1.1/#usage_intro). For example, the `audio` element has no corresponding ARIA semantics but it can have [inherited][], [supported][], or [required][] [states][state] or [properties][property] of the [`application` role](https://www.w3.org/TR/wai-aria-1.1/#application). Assessing the value of the attribute is out of scope for this rule. @@ -190,6 +190,7 @@ This `div` element is not [included in the accessibility tree][], hence its [WAI
``` +[attribute value]: #attribute-value 'Definition of attribute value' [explicit role]: #explicit-role 'Definition of Explicit Role' [focusable]: #focusable 'Definition of focusable' [global]: https://www.w3.org/TR/wai-aria-1.1/#global_states 'Definition of Global ARIA States and Properties'