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
28 changes: 2 additions & 26 deletions _rules/html-page-lang-xml-lang-match-5b7ae0.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,21 +143,13 @@ This rule only applies to documents with a [content type][] of `text/html`

#### Inapplicable Example 5

This rule does not apply to `html` elements whose `lang` attribute is not a [valid language tag][].

```html
<html lang="em" xml:lang="en"></html>
```

#### Inapplicable Example 6

This rule does not apply to `html` elements without an `xml:lang` attribute.

```html
<html lang="en"></html>
```

#### Inapplicable Example 7
#### Inapplicable Example 6

This rule applies neither to `html` elements without an `xml:lang` attribute, nor to `html` in [nested browsing context][]

Expand All @@ -167,30 +159,14 @@ This rule applies neither to `html` elements without an `xml:lang` attribute, no
</html>
```

#### Inapplicable Example 8
#### Inapplicable Example 7

This rule does not apply to `html` elements with an empty (`""`) `xml:lang` attribute.

```html
<html lang="fr" xml:lang=""></html>
```

#### Inapplicable Example 9

The `lang` attribute of this page is an [iso 639.2][] three letters code, hence not a [valid language tag][].

```html
<html lang="eng" xml:lang="en"></html>
```

#### Inapplicable Example 10

The `lang` attribute of this page is a [grandfathered tag][grandfathered tags], hence not a [valid language tag][].

```html
<html lang="i-lux" xml:lang="lb"></html>
```

[content type]: https://dom.spec.whatwg.org/#concept-document-content-type 'Definition of content type'
[extended language subtags]: https://www.rfc-editor.org/rfc/rfc5646.html#section-2.2.2 'Definition of extended language subtag'
[grandfathered tags]: https://www.rfc-editor.org/rfc/rfc5646.html#section-2.2.8
Expand Down