Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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).
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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.
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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_
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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].
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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).
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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._
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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.
Expand Down