Skip to content

Commit 4f9a1c3

Browse files
authored
object-has-name; adjust order of failed examples (#1839)
This moves failed example 4 to the top, since that seems the simplest example.
1 parent 0a5f420 commit 4f9a1c3

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

_rules/object-has-acessible-name-8fc3b6.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -99,34 +99,34 @@ This `object` element placed off screen, which embeds an audio resource, has a n
9999

100100
#### Failed Example 1
101101

102-
This `object` element which embeds a video resource has an empty [accessible name][] because the `title` attribute is empty.
102+
This `object` element which embeds an audio resource has an empty [accessible name][] because it does not provide an accessible name through one of `title`, `aria-label` or `aria-labelledby` attributes.
103103

104104
```html
105-
<object title="" data="/test-assets/rabbit-video/video.mp4"></object>
105+
<object data="/test-assets/moon-audio/moon-speech.mp3"></object>
106106
```
107107

108108
#### Failed Example 2
109109

110-
This `object` element which embeds an image resource has an empty [accessible name][] because the `span` element with `id="label"` is empty.
110+
This `object` element which embeds a video resource has an empty [accessible name][] because the `title` attribute is empty.
111111

112112
```html
113-
<span id="label"></span> <object aria-labelledby="label" data="/test-assets/shared/w3c-logo.png"></object>
113+
<object title="" data="/test-assets/rabbit-video/video.mp4"></object>
114114
```
115115

116116
#### Failed Example 3
117117

118-
This `object` element which embeds an audio resource has an empty [accessible name][] because the `aria-labelledby` attribute references a non-existing id.
118+
This `object` element which embeds an image resource has an empty [accessible name][] because the `span` element with `id="label"` is empty.
119119

120120
```html
121-
<object aria-labelledby="download" data="/test-assets/moon-audio/moon-speech.mp3"></object>
121+
<span id="label"></span> <object aria-labelledby="label" data="/test-assets/shared/w3c-logo.png"></object>
122122
```
123123

124124
#### Failed Example 4
125125

126-
This `object` element which embeds an audio resource has an empty [accessible name][] because it does not provide an accessible name through one of `title`, `aria-label` or `aria-labelledby` attributes.
126+
This `object` element which embeds an audio resource has an empty [accessible name][] because the `aria-labelledby` attribute references a non-existing id.
127127

128128
```html
129-
<object data="/test-assets/moon-audio/moon-speech.mp3"></object>
129+
<object aria-labelledby="download" data="/test-assets/moon-audio/moon-speech.mp3"></object>
130130
```
131131

132132
### Inapplicable

0 commit comments

Comments
 (0)