Skip to content
Open
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
18 changes: 2 additions & 16 deletions _rules/visible-label-in-accessible-name-2ee8b8.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ The understanding document of [2.5.3 Label in Name][understand253] use the term

If the target element contains an [image of text](https://www.w3.org/TR/WCAG22/#dfn-images-of-text), it may pass this rule but fail [2.5.3 Label in Name][understand253] (because the accessible name should then match the text inside the image, which is not taken into account by this rule). So further testing is needed. This case might be handled by a different rule in the future.

This rule does not include examples of abbreviations or differently hyphenated text because the label in name algorithm should not be used. While such examples are not covered by this rule, [Success Criterion 2.5.3 Label in Name][sc253] could apply.

### Assumptions

This rule assumes that the [visible inner text][] is equal to the [label as defined by WCAG](https://www.w3.org/wai/wcag22/understanding/label-in-name#dfn-label), even though "label" is not precisely defined at this point in history.
Expand Down Expand Up @@ -401,22 +403,6 @@ This link has no [visible text content][].
</a>
```

#### Inapplicable Example 5

This link's label contains an abbreviation.

```html
<a aria-label="University Avenue" href="#">University Ave.</a>
```

#### Inapplicable Example 6

This word - non-standard / nonstandard - appears in both the element's accessible name and its visible label, using different hyphenation.

```html
<a href="#" aria-label="non-standard">nonstandard</a>
```

[accessible name]: #accessible-name 'Definition of accessible name'
[label in name algorithm]: #label-in-name-algorithm 'Definition of Label in Name Algorithm'
[non-text content]: https://www.w3.org/TR/WCAG22/#dfn-non-text-content 'WCAG Definition of Non-text content'
Expand Down