Skip to content

Commit 524d73d

Browse files
Update aria-required-accessible-name-gp8n89.md
1 parent 60faf62 commit 524d73d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

_rules/aria-required-accessible-name-gp8n89.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Elements subjected to the [Presentational Roles Conflict Resolution][] are not c
7171
The `div` element with role `button` has an [accessible name][] provided by its content.
7272

7373
```html
74-
<div role="button" tabindex="0">Submit</button>
74+
<div role="button" tabindex="0">Submit</div>
7575
```
7676

7777
#### Passed Example 2
@@ -125,7 +125,7 @@ This `div` element with role `heading` is not [visible][], but is still [include
125125
The `div` element with role `link` has an [accessible name][] provided by its content.
126126

127127
```html
128-
<div role="link" tabindex="0" onclick="location.href='https://act-rules.github.io/'">ACT Rules</button>
128+
<div role="link" tabindex="0" onclick="location.href='https://act-rules.github.io/'">ACT Rules</div>
129129
```
130130

131131
### Failed
@@ -173,7 +173,7 @@ The `dialog` role accept an [accessible name][] only from the author and not fro
173173
The `div` element with role `heading` doesn't an [accessible name][] due to the empty `aria-label` [attribute value][].
174174

175175
```html
176-
<div role="heading" aria-level="1" aria-label="">Terms</h1>
176+
<div role="heading" aria-level="1" aria-label="">Terms</div>
177177
```
178178

179179
#### Failed Example 6
@@ -206,7 +206,7 @@ This `div` element with role `button` is not [visible][], but is still [included
206206
The `div` element with role `link` has an empty [accessible name][].
207207

208208
```html
209-
<div role="link" tabindex="0" onclick="location.href='https://act-rules.github.io/'"></button>
209+
<div role="link" tabindex="0" onclick="location.href='https://act-rules.github.io/'"></div>
210210
```
211211

212212
### Inapplicable

0 commit comments

Comments
 (0)