Skip to content

Commit 1f03b84

Browse files
Update html-page-lang-b5c3f8.md
1 parent 22859b0 commit 1f03b84

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

_rules/html-page-lang-b5c3f8.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ This rule applies to any [document element](https://dom.spec.whatwg.org/#documen
3434

3535
- is in a [top-level browsing context](https://html.spec.whatwg.org/#top-level-browsing-context); and
3636
- has a [node document](https://dom.spec.whatwg.org/#concept-node-document) with a [content type](https://dom.spec.whatwg.org/#concept-document-content-type) of `text/html`; and
37-
- has at least one [descendant](https://dom.spec.whatwg.org/#concept-tree-descendant) [text node][] which is neither empty nor only [whitespace][]..
37+
- has at least one of the following [descendant](https://dom.spec.whatwg.org/#concept-tree-descendant) that is not empty or only [whitespace][]:
38+
- [text node][] that is included in the accessibility tree; or
39+
- an element's [accessible name][] or [accessible description](https://www.w3.org/TR/accname-1.1/#dfn-accessible-description) that is exposed in the accessibility tree; or
40+
- the document's title.
3841

3942
**Note:** `html` elements within `iframe` and `object` elements are not applicable as `iframe` and `object` elements create [nested browsing contexts](https://html.spec.whatwg.org/#nested-browsing-context). However, as these elements are meant to provide a layer of isolation, the declared language of their [parent browsing context](https://html.spec.whatwg.org/#parent-browsing-context) will likely not be inherited, making it possible for empty `lang` attributes in [nested browsing contexts](https://html.spec.whatwg.org/#nested-browsing-context) to also cause accessibility issues.
4043

0 commit comments

Comments
 (0)