You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _rules/element-lang-valid-de46e4.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,7 +71,7 @@ There are differences in how assistive technologies handle unknown and invalid l
71
71
This `article` element has a `lang`[attribute value][] which has a [known primary language tag][].
72
72
73
73
```html
74
-
<html>
74
+
<htmllang="es">
75
75
<body>
76
76
<articlelang="en">
77
77
They wandered into a strange Tiki bar on the edge of the small beach town.
@@ -85,7 +85,7 @@ This `article` element has a `lang` [attribute value][] which has a [known prima
85
85
This `blockquote` element has a `lang`[attribute value][] which has a [known primary language tag][]. The region section ("CH") in the value is ignored by the rule (and the definition of [known primary language tag][]).
86
86
87
87
```html
88
-
<html>
88
+
<htmllang="en">
89
89
<body>
90
90
<blockquotelang="fr-CH">
91
91
Ils ont trouvé un étrange bar Tiki aux abords de la petite ville balnéaire.
@@ -99,7 +99,7 @@ This `blockquote` element has a `lang` [attribute value][] which has a [known pr
99
99
This `p` element has a `lang`[attribute value][] which has a [known primary language tag][], but a syntactically invalid region subtag which is ignored by the rule.
100
100
101
101
```html
102
-
<html>
102
+
<htmllang="fr">
103
103
<body>
104
104
<plang="en-US-GB">
105
105
They wandered into a strange Tiki bar on the edge of the small beach town.
@@ -113,7 +113,7 @@ This `p` element has a `lang` [attribute value][] which has a [known primary lan
113
113
This `div` element has a valid `lang`[attribute value][]. There is no [text inheriting its programmatic language][] from the `article` element, therefore its `lang` attribute is not considered by the rule.
114
114
115
115
```html
116
-
<html>
116
+
<htmllang="fr">
117
117
<body>
118
118
<articlelang="invalid">
119
119
<divlang="en">
@@ -129,7 +129,7 @@ This `div` element has a valid `lang` [attribute value][]. There is no [text inh
129
129
This `div` element has a valid `lang`[attribute value][]. The [accessible name][] of the image is [text inheriting its programmatic language][] from the `div` element.
130
130
131
131
```html
132
-
<html>
132
+
<htmllang="es">
133
133
<body>
134
134
<divlang="EN">
135
135
<imgsrc="/test-assets/shared/fireworks.jpg"alt="Fireworks over Paris" />
@@ -145,7 +145,7 @@ This `div` element has a valid `lang` [attribute value][]. The [accessible name]
145
145
This `article` element has a `lang`[attribute value][] which does not have a [known primary language tag][] because its primary language subtag does not exist in the [language subtag registry][].
146
146
147
147
```html
148
-
<html>
148
+
<htmllang="es">
149
149
<body>
150
150
<articlelang="dutch">
151
151
Zij liepen een vreemde Tiki bar binnen, aan de rand van een dorpje aan het strand.
@@ -159,7 +159,7 @@ This `article` element has a `lang` [attribute value][] which does not have a [k
159
159
This `article` element has a `lang`[attribute value][] which has no [known primary language tag][].
160
160
161
161
```html
162
-
<html>
162
+
<htmllang="en">
163
163
<body>
164
164
<articlelang="#!">
165
165
They wandered into a strange Tiki bar on the edge of the small beach town.
@@ -173,7 +173,7 @@ This `article` element has a `lang` [attribute value][] which has no [known prim
173
173
This `article` element has a `lang`[attribute value][] which consists of only [whitespace][] and thus has no [known primary language tag][].
174
174
175
175
```html
176
-
<html>
176
+
<htmllang="fr">
177
177
<body>
178
178
<articlelang="">
179
179
They wandered into a strange Tiki bar on the edge of the small beach town.
@@ -187,7 +187,7 @@ This `article` element has a `lang` [attribute value][] which consists of only [
187
187
The `lang`[attribute value][] does not have a valid language tag. The `lang` attribute must be valid because the content is [visible][].
188
188
189
189
```html
190
-
<html>
190
+
<htmllang="es">
191
191
<body>
192
192
<articlelang="english">
193
193
<paria-hidden="true">
@@ -203,7 +203,7 @@ The `lang` [attribute value][] does not have a valid language tag. The `lang` at
203
203
The `lang`[attribute value][] does not have a valid language tag, and its [descendant][] is not [visible][] though it is still [included in the accessibility tree][].
204
204
205
205
```html
206
-
<html>
206
+
<htmllang="fr">
207
207
<body>
208
208
<articlelang="English">
209
209
<pstyle="position: absolute; top: -9999px">
@@ -219,7 +219,7 @@ The `lang` [attribute value][] does not have a valid language tag, and its [desc
219
219
This `div` element has an invalid `lang`[attribute value][]. There is no [text inheriting its programmatic language][] from the `article` element, therefore its `lang` attribute is not considered by the rule.
220
220
221
221
```html
222
-
<html>
222
+
<htmllang="es">
223
223
<body>
224
224
<articlelang="en">
225
225
<divlang="invalid">
@@ -235,7 +235,7 @@ This `div` element has an invalid `lang` [attribute value][]. There is no [text
235
235
This `div` element has an invalid `lang`[attribute value][]. The [accessible name][] of the image is [text inheriting its programmatic language][] from the `div` element.
236
236
237
237
```html
238
-
<html>
238
+
<htmllang="en">
239
239
<body>
240
240
<divlang="invalid">
241
241
<imgsrc="/test-assets/shared/fireworks.jpg"alt="Fireworks over Paris" />
0 commit comments