Language of Parts - Pass

Test Case Summary

Test Case ID

TC15.2-all-pass-1

Test Case Description

Detect the existence of lang attribute for text (part) that differs from the default human language of the page. Determine if the value of the lang attribute is correct for the language of the part. The value must also be identified in the Internet Assigned Numbers Authority’s IANA Language subtag registry.

The code sample provides a page in English with a part in French, with the language correctly identified. A successful test should identify a PASS for Baseline 15.2-LanguagePart.

Applicable ICT Baseline Test

15.2 Test Procedure for Language of Parts

Baseline Test ID: 15.2-LanguagePart

Test Instruction: All

Test Case Detail

Expected Baseline Result

PASS

The French part has correct lang="fr" attribute.

Test Data

Single-Page URL

Embedded Code

Code

Test Case Instruction

Test Instruction Instruction Detail Expected Test Case Result
IC-1 Text content that differs from the default human language of the page including alternative text for non-text content. Applicable; page has French text on an English page.
15.2-1 Identify the human language of the text content that differs from the default human language of the page. French
15.1-2 Check that the lang attribute is specified for any HTML element that contains a content segment that differs from the default human language of the page. [SC 3.1.2] Pass: <blockquote lang="fr">
15.1-3 Check that the value of the lang attribute is correctly defined for the content segment. [SC 3.1.2] Pass: “fr” is the correct language subtag for French
Result If any of the above checks fail, then Baseline Test 15.1-LanguagePage fails. All checks PASS.