Spørsmål

Testar på krav:

  • 3.1.2 Språk på deler av innhold

Innhaldstype:

Alt tekstinnhald

Krav til samsvar:

Applicability

This rule applies to any HTML element with a lang attribute value that is not empty ("") and for which all of the following is true:

Expectation

For each test target, the lang attribute value has a known primary language tag.

Assumptions

  • This rule assumes that the lang attribute value is used to indicate the language of a section of the content. If the lang attribute value is used for something else (for example to indicate the programming language of a code element), the content may still conform to WCAG despite failing this rule.
  • This rule assumes that user agents and assistive technologies can programmatically determine known primary language tags even if these do not conform to the RFC 5646 syntax.
  • This rule assumes that only known primary language tags are enough to satisfy Success Criterion 3.1.2 Language of Parts; this notably excludes grandfathered tags and ISO 639.2 three-letters codes, both having poor support in assistive technologies.
  • This rule assumes that the text nodes contain text that express something in human language and therefore need a correct programmatic language.