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-matches-default-language-off6ek.md
+2-41Lines changed: 2 additions & 41 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -271,20 +271,6 @@ There is no [descendant of a `body`](#off6ek:in-body) element with a `lang` attr
271
271
272
272
#### Inapplicable Example 3
273
273
274
-
This `p` element does not have a [valid language tag](#off6ek:valid-lang).
275
-
276
-
```html
277
-
<htmllang="en">
278
-
<body>
279
-
<plang="français">
280
-
I love ACT rules!
281
-
</p>
282
-
</body>
283
-
</html>
284
-
```
285
-
286
-
#### Inapplicable Example 4
287
-
288
274
The first `p` element is [empty](#off6ek:not-empty) because the only [element inheriting its programmatic language][] is itself, and it has no text node child.
289
275
290
276
```html
@@ -296,7 +282,7 @@ The first `p` element is [empty](#off6ek:not-empty) because the only [element in
296
282
</html>
297
283
```
298
284
299
-
#### Inapplicable Example 5
285
+
#### Inapplicable Example 4
300
286
301
287
This `p` element is [empty](#off6ek:not-empty) because it has no content that is either [visible][] or [included in the accessibility tree][].
302
288
@@ -308,31 +294,7 @@ This `p` element is [empty](#off6ek:not-empty) because it has no content that is
308
294
</html>
309
295
```
310
296
311
-
#### Inapplicable Example 6
312
-
313
-
The `lang`[attribute value][] of this `p` element has no [known primary language tag][] because the `eng`[iso 639.2][] three letters code does not exist in the [language subtag registry][].
314
-
315
-
```html
316
-
<htmllang="en">
317
-
<body>
318
-
<plang="eng">I love ACT rules!</p>
319
-
</body>
320
-
</html>
321
-
```
322
-
323
-
#### Inapplicable Example 7
324
-
325
-
The `lang`[attribute value][] of this `p` element has no [known primary language tag][] because the `i-lox`[grandfathered tag][grandfathered tags] does not exist in the [language subtag registry][].
326
-
327
-
```html
328
-
<htmllang="lb">
329
-
<body>
330
-
<plang="i-lux">Lëtzebuerg ass e Land an Europa.</p>
331
-
</body>
332
-
</html>
333
-
```
334
-
335
-
#### Inapplicable Example 8
297
+
#### Inapplicable Example 5
336
298
337
299
The [text inheriting its programmatic language][] from this `div` element is only [whitespace][].
338
300
@@ -362,6 +324,5 @@ The [text inheriting its programmatic language][] from this `div` element is onl
362
324
[sc312]: https://www.w3.org/TR/WCAG21/#language-of-parts'Success Criterion 3.1.2 Language of Parts'
363
325
[usc312]: https://www.w3.org/WAI/WCAG21/Understanding/language-of-parts.html'Understanding Success Criterion 3.1.2: Language of Parts'
364
326
[known primary language tag]: #known-primary-language-tag'Definition of Known Primary Language Tag'
0 commit comments