From 36cbeed0201871c97007b2ec2f65f0d651f4e48d Mon Sep 17 00:00:00 2001 From: Jean-Yves Moyen Date: Thu, 7 May 2020 13:42:41 +0200 Subject: [PATCH 1/3] Rename to non-empty accessible name --- _rules/button-accessible-name-97a4e1.md | 4 ++-- _rules/explicit-SVG-image-has-name-7d6734.md | 4 ++-- _rules/form-control-accessible-name-e086e5.md | 4 ++-- _rules/heading-accessible-name-ffd0e9.md | 6 ++++-- _rules/iframe-accessible-name-cae760.md | 4 ++-- _rules/image-accessible-name-23a2a8.md | 4 ++-- _rules/image-button-accessible-name-59796f.md | 4 ++-- _rules/link-accessible-name-c487ae.md | 4 ++-- 8 files changed, 18 insertions(+), 16 deletions(-) diff --git a/_rules/button-accessible-name-97a4e1.md b/_rules/button-accessible-name-97a4e1.md index b66235dbf6f..d3ae3b41860 100755 --- a/_rules/button-accessible-name-97a4e1.md +++ b/_rules/button-accessible-name-97a4e1.md @@ -1,9 +1,9 @@ --- id: 97a4e1 -name: Button has accessible name +name: Button has non-empty accessible name rule_type: atomic description: | - This rule checks that each `button` element has an accessible name. + This rule checks that each `button` element has a non-empty accessible name. accessibility_requirements: wcag20:4.1.2: # Name, Role, Value (A) forConformance: true diff --git a/_rules/explicit-SVG-image-has-name-7d6734.md b/_rules/explicit-SVG-image-has-name-7d6734.md index 6c819649a1d..9ff8469406b 100755 --- a/_rules/explicit-SVG-image-has-name-7d6734.md +++ b/_rules/explicit-SVG-image-has-name-7d6734.md @@ -1,9 +1,9 @@ --- id: 7d6734 -name: '`svg` element with explicit role has accessible name' +name: '`svg` element with explicit role has non-empty accessible name' rule_type: atomic description: | - This rule checks that each SVG image element that is explicitly included in the accessibility tree has an accessible name. + This rule checks that each SVG image element that is explicitly included in the accessibility tree has a non-empty accessible name. accessibility_requirements: wcag20:1.1.1: # Non-Text Content (A) forConformance: true diff --git a/_rules/form-control-accessible-name-e086e5.md b/_rules/form-control-accessible-name-e086e5.md index f38b03eb44d..5d928f43730 100755 --- a/_rules/form-control-accessible-name-e086e5.md +++ b/_rules/form-control-accessible-name-e086e5.md @@ -1,9 +1,9 @@ --- id: e086e5 -name: Form control has accessible name +name: Form control has non-empty accessible name rule_type: atomic description: | - This rule checks that each form field element has an accessible name. + This rule checks that each form field element has a non-empty accessible name. accessibility_requirements: wcag20:4.1.2: # Name, Role, Value (A) forConformance: true diff --git a/_rules/heading-accessible-name-ffd0e9.md b/_rules/heading-accessible-name-ffd0e9.md index 4edc2854797..d80a5070b06 100755 --- a/_rules/heading-accessible-name-ffd0e9.md +++ b/_rules/heading-accessible-name-ffd0e9.md @@ -1,9 +1,9 @@ --- id: ffd0e9 -name: Heading has accessible name +name: Heading has accessible non-empty name rule_type: atomic description: | - This rule checks that each heading has an accessible name. + This rule checks that each heading has a non-empty accessible name. accessibility_requirements: wcag20:1.3.1: # Info and Relationships (A) forConformance: true @@ -32,6 +32,8 @@ This rule applies to any HTML element with the [semantic role][] of `heading` th Each test target has a non-empty (`""`) [accessible name][]. +**Note:** Testing that the [accessible name][] describes the purpose of the element is not part of this rule and must be tested separately. + ## Assumptions _There are currently no assumptions._ diff --git a/_rules/iframe-accessible-name-cae760.md b/_rules/iframe-accessible-name-cae760.md index e97e5d75603..cb4c7e6b8a8 100755 --- a/_rules/iframe-accessible-name-cae760.md +++ b/_rules/iframe-accessible-name-cae760.md @@ -1,9 +1,9 @@ --- id: cae760 -name: '`iframe` element has accessible name' +name: '`iframe` element has non-empty accessible name' rule_type: atomic description: | - This rule checks that each `iframe` element has an accessible name. + This rule checks that each `iframe` element has a non-empty accessible name. accessibility_requirements: wcag20:4.1.2: # Name, Role, Value (A) forConformance: true diff --git a/_rules/image-accessible-name-23a2a8.md b/_rules/image-accessible-name-23a2a8.md index 9fe766732f9..59e54d4962e 100755 --- a/_rules/image-accessible-name-23a2a8.md +++ b/_rules/image-accessible-name-23a2a8.md @@ -1,9 +1,9 @@ --- id: 23a2a8 -name: Image has accessible name +name: Image has non-empty accessible name rule_type: atomic description: | - This rule checks that each image either has an accessible name or is marked up as decorative + This rule checks that each image either has a non-empty accessible name or is marked up as decorative accessibility_requirements: wcag20:1.1.1: # Non-Text Content forConformance: true diff --git a/_rules/image-button-accessible-name-59796f.md b/_rules/image-button-accessible-name-59796f.md index ea7baa325cb..f52efeda7d0 100755 --- a/_rules/image-button-accessible-name-59796f.md +++ b/_rules/image-button-accessible-name-59796f.md @@ -1,9 +1,9 @@ --- id: 59796f -name: Image button has accessible name +name: Image button has accessible non-empty name rule_type: atomic description: | - This rule checks that each image button element has an accessible name. + This rule checks that each image button element has a non-empty accessible name. accessibility_requirements: wcag20:1.1.1: # Non-Text Content (A) forConformance: true diff --git a/_rules/link-accessible-name-c487ae.md b/_rules/link-accessible-name-c487ae.md index 53fa35b0fa6..a6e4a74ad7e 100755 --- a/_rules/link-accessible-name-c487ae.md +++ b/_rules/link-accessible-name-c487ae.md @@ -1,9 +1,9 @@ --- id: c487ae -name: Link has accessible name +name: Link has non-empty accessible name rule_type: atomic description: | - This rule checks that each link has an accessible name. + This rule checks that each link has a non-empty accessible name. accessibility_requirements: wcag20:4.1.2: # Name, Role, Value (A) forConformance: true From 0c7cb1f2de854afce0eaea3753fb29f49a09e51d Mon Sep 17 00:00:00 2001 From: Jean-Yves Moyen Date: Thu, 7 May 2020 15:55:49 +0200 Subject: [PATCH 2/3] Add non-empty in filenames --- ...-name-97a4e1.md => button-non-empty-accessible-name-97a4e1.md} | 0 ....md => explicit-SVG-image-non-empty-accessible-name-7d6734.md} | 0 ...e086e5.md => form-control-non-empty-accessible-name-e086e5.md} | 0 ...name-ffd0e9.md => heading-non-empty-accessible-name-ffd0e9.md} | 0 ...-name-cae760.md => iframe-non-empty-accessible-name-cae760.md} | 0 ...59796f.md => image-button-non-empty-accessible-name-59796f.md} | 0 ...e-name-23a2a8.md => image-non-empty-accessible-name-23a2a8.md} | 0 ...le-name-c487ae.md => link-non-empty-accessible-name-c487ae.md} | 0 8 files changed, 0 insertions(+), 0 deletions(-) rename _rules/{button-accessible-name-97a4e1.md => button-non-empty-accessible-name-97a4e1.md} (100%) rename _rules/{explicit-SVG-image-has-name-7d6734.md => explicit-SVG-image-non-empty-accessible-name-7d6734.md} (100%) rename _rules/{form-control-accessible-name-e086e5.md => form-control-non-empty-accessible-name-e086e5.md} (100%) rename _rules/{heading-accessible-name-ffd0e9.md => heading-non-empty-accessible-name-ffd0e9.md} (100%) rename _rules/{iframe-accessible-name-cae760.md => iframe-non-empty-accessible-name-cae760.md} (100%) rename _rules/{image-button-accessible-name-59796f.md => image-button-non-empty-accessible-name-59796f.md} (100%) rename _rules/{image-accessible-name-23a2a8.md => image-non-empty-accessible-name-23a2a8.md} (100%) rename _rules/{link-accessible-name-c487ae.md => link-non-empty-accessible-name-c487ae.md} (100%) diff --git a/_rules/button-accessible-name-97a4e1.md b/_rules/button-non-empty-accessible-name-97a4e1.md similarity index 100% rename from _rules/button-accessible-name-97a4e1.md rename to _rules/button-non-empty-accessible-name-97a4e1.md diff --git a/_rules/explicit-SVG-image-has-name-7d6734.md b/_rules/explicit-SVG-image-non-empty-accessible-name-7d6734.md similarity index 100% rename from _rules/explicit-SVG-image-has-name-7d6734.md rename to _rules/explicit-SVG-image-non-empty-accessible-name-7d6734.md diff --git a/_rules/form-control-accessible-name-e086e5.md b/_rules/form-control-non-empty-accessible-name-e086e5.md similarity index 100% rename from _rules/form-control-accessible-name-e086e5.md rename to _rules/form-control-non-empty-accessible-name-e086e5.md diff --git a/_rules/heading-accessible-name-ffd0e9.md b/_rules/heading-non-empty-accessible-name-ffd0e9.md similarity index 100% rename from _rules/heading-accessible-name-ffd0e9.md rename to _rules/heading-non-empty-accessible-name-ffd0e9.md diff --git a/_rules/iframe-accessible-name-cae760.md b/_rules/iframe-non-empty-accessible-name-cae760.md similarity index 100% rename from _rules/iframe-accessible-name-cae760.md rename to _rules/iframe-non-empty-accessible-name-cae760.md diff --git a/_rules/image-button-accessible-name-59796f.md b/_rules/image-button-non-empty-accessible-name-59796f.md similarity index 100% rename from _rules/image-button-accessible-name-59796f.md rename to _rules/image-button-non-empty-accessible-name-59796f.md diff --git a/_rules/image-accessible-name-23a2a8.md b/_rules/image-non-empty-accessible-name-23a2a8.md similarity index 100% rename from _rules/image-accessible-name-23a2a8.md rename to _rules/image-non-empty-accessible-name-23a2a8.md diff --git a/_rules/link-accessible-name-c487ae.md b/_rules/link-non-empty-accessible-name-c487ae.md similarity index 100% rename from _rules/link-accessible-name-c487ae.md rename to _rules/link-non-empty-accessible-name-c487ae.md From 3f900b4a8721192e4c8932cce846e2db22fd8c68 Mon Sep 17 00:00:00 2001 From: Jean-Yves Moyen Date: Tue, 12 May 2020 14:28:15 +0200 Subject: [PATCH 3/3] Remove note on testing --- _rules/button-non-empty-accessible-name-97a4e1.md | 2 -- _rules/explicit-SVG-image-non-empty-accessible-name-7d6734.md | 2 -- _rules/form-control-non-empty-accessible-name-e086e5.md | 2 -- _rules/heading-non-empty-accessible-name-ffd0e9.md | 2 -- _rules/iframe-non-empty-accessible-name-cae760.md | 2 -- _rules/image-button-non-empty-accessible-name-59796f.md | 2 -- _rules/image-non-empty-accessible-name-23a2a8.md | 2 -- _rules/link-non-empty-accessible-name-c487ae.md | 2 -- 8 files changed, 16 deletions(-) diff --git a/_rules/button-non-empty-accessible-name-97a4e1.md b/_rules/button-non-empty-accessible-name-97a4e1.md index d3ae3b41860..d46c6e9c132 100755 --- a/_rules/button-non-empty-accessible-name-97a4e1.md +++ b/_rules/button-non-empty-accessible-name-97a4e1.md @@ -32,8 +32,6 @@ Each target element has an [accessible name][] that is not empty (`""`). **Note:** `input` elements of type `submit` and `reset` can get their [accessible name][] from a [default text](https://www.w3.org/TR/html-aam/#input-type-button-input-type-submit-and-input-type-reset), as well as from a `value` or other attribute. -**Note:** Testing that the [accessible name][] describes the purpose of the element is not part of this rule and must be tested separately. - ## Assumptions - The rule assumes that all buttons are [user interface components as defined by WCAG 2](https://www.w3.org/TR/WCAG21/#dfn-user-interface-components). diff --git a/_rules/explicit-SVG-image-non-empty-accessible-name-7d6734.md b/_rules/explicit-SVG-image-non-empty-accessible-name-7d6734.md index 9ff8469406b..6eeda2d6ecf 100755 --- a/_rules/explicit-SVG-image-non-empty-accessible-name-7d6734.md +++ b/_rules/explicit-SVG-image-non-empty-accessible-name-7d6734.md @@ -28,8 +28,6 @@ The rule applies to any element in the [SVG](https://www.w3.org/2000/svg) namesp Each target element has an [accessible name][] that is not empty. -**Note:** Testing that the [accessible name][] describes the purpose of the element is not part of this rule and must be tested separately. - ## Assumptions This rule assumes that the presence of one of the roles outlined in the applicability indicates the authors intent to include the element in the accessibility tree and thus convey information to the user about that element. diff --git a/_rules/form-control-non-empty-accessible-name-e086e5.md b/_rules/form-control-non-empty-accessible-name-e086e5.md index 5d928f43730..556167abc8e 100755 --- a/_rules/form-control-non-empty-accessible-name-e086e5.md +++ b/_rules/form-control-non-empty-accessible-name-e086e5.md @@ -35,8 +35,6 @@ This rule applies to any element that is [included in the accessibility tree](#i Each target element has an [accessible name][] that is not empty (`""`). -**Note:** Testing that the [accessible name][] describes the purpose of the element is not part of this rule and must be tested separately. - ## Assumptions _There are currently no assumptions_ diff --git a/_rules/heading-non-empty-accessible-name-ffd0e9.md b/_rules/heading-non-empty-accessible-name-ffd0e9.md index d80a5070b06..92807c8d3f0 100755 --- a/_rules/heading-non-empty-accessible-name-ffd0e9.md +++ b/_rules/heading-non-empty-accessible-name-ffd0e9.md @@ -32,8 +32,6 @@ This rule applies to any HTML element with the [semantic role][] of `heading` th Each test target has a non-empty (`""`) [accessible name][]. -**Note:** Testing that the [accessible name][] describes the purpose of the element is not part of this rule and must be tested separately. - ## Assumptions _There are currently no assumptions._ diff --git a/_rules/iframe-non-empty-accessible-name-cae760.md b/_rules/iframe-non-empty-accessible-name-cae760.md index cb4c7e6b8a8..880966f359f 100755 --- a/_rules/iframe-non-empty-accessible-name-cae760.md +++ b/_rules/iframe-non-empty-accessible-name-cae760.md @@ -29,8 +29,6 @@ The rule applies to `iframe` elements that are [included in the accessibility tr Each target element has an [accessible name][] that is not empty (`""`). -**Note:** Testing that the [accessible name][] describes the purpose of the element is not part of this rule and must be tested separately. - ## Assumptions If an `iframe` is not perceived by the user as a single control, it does not qualify as a [user interface component][] under WCAG 2. In such a scenario, failing this rule would not fail [success criterion 4.1.2](https://www.w3.org/TR/WCAG21/#name-role-value). Unless the `iframe` is both removed from the accessibility tree and removed from [sequential focus navigation][], they usually are considered to be [user interface components][user interface component]. diff --git a/_rules/image-button-non-empty-accessible-name-59796f.md b/_rules/image-button-non-empty-accessible-name-59796f.md index f52efeda7d0..53e50e996f6 100755 --- a/_rules/image-button-non-empty-accessible-name-59796f.md +++ b/_rules/image-button-non-empty-accessible-name-59796f.md @@ -47,8 +47,6 @@ The rule applies to any HTML `input` element with a `type` attribute in the [`Im Each target element has an [accessible name][] that is not empty (`""`). -**Note:** Testing that the [accessible name][] describes the purpose of the element is not part of this rule and must be tested separately. - ## Assumptions - This rule assumes that all image buttons are [user interface components as defined by WCAG 2](https://www.w3.org/TR/WCAG21/#dfn-user-interface-components). diff --git a/_rules/image-non-empty-accessible-name-23a2a8.md b/_rules/image-non-empty-accessible-name-23a2a8.md index c9b18efd2dd..044788a2d8e 100755 --- a/_rules/image-non-empty-accessible-name-23a2a8.md +++ b/_rules/image-non-empty-accessible-name-23a2a8.md @@ -42,8 +42,6 @@ The rule applies to HTML `img` elements and HTML elements with the [semantic rol Each target element has an [accessible name][] that is not empty (`""`), or has a [semantic role][] of `none` or `presentation`. -**Note:** Testing that the [accessible name][] describes the purpose of the element is not part of this rule and must be tested separately. - ## Assumptions _There are currently no assumptions._ diff --git a/_rules/link-non-empty-accessible-name-c487ae.md b/_rules/link-non-empty-accessible-name-c487ae.md index a6e4a74ad7e..8307cddb568 100755 --- a/_rules/link-non-empty-accessible-name-c487ae.md +++ b/_rules/link-non-empty-accessible-name-c487ae.md @@ -47,8 +47,6 @@ The rule applies to any HTML element with the [semantic role](#semantic-role) of Each target element has an [accessible name][] that is not empty (`""`). -**Note:** Testing that the [accessible name][] describes the purpose of the element is not part of this rule and must be tested separately. - ## Assumptions The rule assumes that all links are [user interface components](https://www.w3.org/TR/WCAG21/#dfn-user-interface-components) as defined by WCAG 2. When the link role is used on elements that do not behave as links, failing this rule might not mean that the success criteria are failed.