Skip to content

Commit

Permalink
Replace 'included in the accessibility tree' with 'hidden state is fa…
Browse files Browse the repository at this point in the history
…lse' (#1631)
  • Loading branch information
Jym77 authored Jun 17, 2021
1 parent ae2e595 commit 8db2d9b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions _rules/role-attribute-valid-value-674b10.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ acknowledgments:
This rule applies to any `role` attribute for which all the following are true:

- the attribute has a value that is neither empty ("") nor only [ASCII whitespace][]; and
- the attribute is specified on an HTML or SVG element that is [included in the accessibility tree][].
- the attribute is specified on an HTML or SVG element whose [hidden state][] is "false".

## Expectation

Expand Down Expand Up @@ -166,15 +166,15 @@ This `role` attribute is only [ASCII whitespace][].

#### Inapplicable Example 5

This `role` attribute is specified on an element which is not [included in the accessibility tree][].
This `role` attribute is specified on an element whose [hidden state][] is "true".

```html
<div aria-hidden="true" role="banner">Some Content</div>
```

[ascii whitespace]: https://infra.spec.whatwg.org/#ascii-whitespace 'Definition of ASCII whitespace'
[hidden state]: #hidden-state 'Definition of Hidden State'
[implicit role]: #implicit-role 'Definition of Implicit Role'
[included in the accessibility tree]: #included-in-the-accessibility-tree 'Definition of included in the accessibility tree'
[role attribute]: https://www.w3.org/TR/role-attribute/ 'Specification of the Role attribute'
[sc131]: https://www.w3.org/TR/WCAG21/#info-and-relationships 'Success Criterion 1.3.1 Info and Relationship'
[semantic role]: #semantic-role 'Definition of Semantic Role'
Expand Down

0 comments on commit 8db2d9b

Please sign in to comment.