Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions _rules/element-lang-valid-de46e4.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ There are differences in how assistive technologies handle unknown and invalid l
This `article` element has a `lang` [attribute value][] which has a [known primary language tag][].

```html
<html>
<html lang="es">
<body>
<article lang="en">
They wandered into a strange Tiki bar on the edge of the small beach town.
Expand All @@ -85,7 +85,7 @@ This `article` element has a `lang` [attribute value][] which has a [known prima
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][]).

```html
<html>
<html lang="en">
<body>
<blockquote lang="fr-CH">
Ils ont trouvé un étrange bar Tiki aux abords de la petite ville balnéaire.
Expand All @@ -99,7 +99,7 @@ This `blockquote` element has a `lang` [attribute value][] which has a [known pr
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.

```html
<html>
<html lang="fr">
<body>
<p lang="en-US-GB">
They wandered into a strange Tiki bar on the edge of the small beach town.
Expand All @@ -113,7 +113,7 @@ This `p` element has a `lang` [attribute value][] which has a [known primary lan
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.

```html
<html>
<html lang="fr">
<body>
<article lang="invalid">
<div lang="en">
Expand All @@ -129,7 +129,7 @@ This `div` element has a valid `lang` [attribute value][]. There is no [text inh
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.

```html
<html>
<html lang="es">
<body>
<div lang="EN">
<img src="/test-assets/shared/fireworks.jpg" alt="Fireworks over Paris" />
Expand All @@ -145,7 +145,7 @@ This `div` element has a valid `lang` [attribute value][]. The [accessible name]
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][].

```html
<html>
<html lang="es">
<body>
<article lang="dutch">
Zij liepen een vreemde Tiki bar binnen, aan de rand van een dorpje aan het strand.
Expand All @@ -159,7 +159,7 @@ This `article` element has a `lang` [attribute value][] which does not have a [k
This `article` element has a `lang` [attribute value][] which has no [known primary language tag][].

```html
<html>
<html lang="en">
<body>
<article lang="#!">
They wandered into a strange Tiki bar on the edge of the small beach town.
Expand All @@ -173,7 +173,7 @@ This `article` element has a `lang` [attribute value][] which has no [known prim
This `article` element has a `lang` [attribute value][] which consists of only [whitespace][] and thus has no [known primary language tag][].

```html
<html>
<html lang="fr">
<body>
<article lang=" ">
They wandered into a strange Tiki bar on the edge of the small beach town.
Expand All @@ -187,7 +187,7 @@ This `article` element has a `lang` [attribute value][] which consists of only [
The `lang` [attribute value][] does not have a valid language tag. The `lang` attribute must be valid because the content is [visible][].

```html
<html>
<html lang="es">
<body>
<article lang="english">
<p aria-hidden="true">
Expand All @@ -203,7 +203,7 @@ The `lang` [attribute value][] does not have a valid language tag. The `lang` at
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][].

```html
<html>
<html lang="fr">
<body>
<article lang="English">
<p style="position: absolute; top: -9999px">
Expand All @@ -219,7 +219,7 @@ The `lang` [attribute value][] does not have a valid language tag, and its [desc
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.

```html
<html>
<html lang="es">
<body>
<article lang="en">
<div lang="invalid">
Expand All @@ -235,7 +235,7 @@ This `div` element has an invalid `lang` [attribute value][]. There is no [text
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.

```html
<html>
<html lang="en">
<body>
<div lang="invalid">
<img src="/test-assets/shared/fireworks.jpg" alt="Fireworks over Paris" />
Expand Down