Skip to content

Commit 3a9a657

Browse files
authored
Element lang correct: remove inapplicable examples (#1829)
* Element lang correct: remove inapplicable examples * Fix failing test
1 parent a759e99 commit 3a9a657

1 file changed

Lines changed: 2 additions & 41 deletions

File tree

_rules/element-lang-matches-default-language-off6ek.md

Lines changed: 2 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -271,20 +271,6 @@ There is no [descendant of a `body`](#off6ek:in-body) element with a `lang` attr
271271

272272
#### Inapplicable Example 3
273273

274-
This `p` element does not have a [valid language tag](#off6ek:valid-lang).
275-
276-
```html
277-
<html lang="en">
278-
<body>
279-
<p lang="français">
280-
I love ACT rules!
281-
</p>
282-
</body>
283-
</html>
284-
```
285-
286-
#### Inapplicable Example 4
287-
288274
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.
289275

290276
```html
@@ -296,7 +282,7 @@ The first `p` element is [empty](#off6ek:not-empty) because the only [element in
296282
</html>
297283
```
298284

299-
#### Inapplicable Example 5
285+
#### Inapplicable Example 4
300286

301287
This `p` element is [empty](#off6ek:not-empty) because it has no content that is either [visible][] or [included in the accessibility tree][].
302288

@@ -308,31 +294,7 @@ This `p` element is [empty](#off6ek:not-empty) because it has no content that is
308294
</html>
309295
```
310296

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-
<html lang="en">
317-
<body>
318-
<p lang="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-
<html lang="lb">
329-
<body>
330-
<p lang="i-lux">Lëtzebuerg ass e Land an Europa.</p>
331-
</body>
332-
</html>
333-
```
334-
335-
#### Inapplicable Example 8
297+
#### Inapplicable Example 5
336298

337299
The [text inheriting its programmatic language][] from this `div` element is only [whitespace][].
338300

@@ -362,6 +324,5 @@ The [text inheriting its programmatic language][] from this `div` element is onl
362324
[sc312]: https://www.w3.org/TR/WCAG21/#language-of-parts 'Success Criterion 3.1.2 Language of Parts'
363325
[usc312]: https://www.w3.org/WAI/WCAG21/Understanding/language-of-parts.html 'Understanding Success Criterion 3.1.2: Language of Parts'
364326
[known primary language tag]: #known-primary-language-tag 'Definition of Known Primary Language Tag'
365-
[language subtag registry]: http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
366327
[visible]: #visible 'Definition of Visible'
367328
[whitespace]: #whitespace 'Definition of whitespace'

0 commit comments

Comments
 (0)