Test Case Summary

Test Case ID

TC15.2-2-fail-1

Test Case Description

Detect the existence of lang attribute for text (part) that differs from the default human language of the page.

The code sample provides a page in English with a part in French, with the no language identified for the French part. A successful test should identify a FAIL 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: 2

Test Case Detail

Expected Baseline Result

FAIL

The French part has no lang attribute.

Test Data

Single-Page URL

Embedded 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] Fail: French part’s <blockquote> has no lang attribute
Result If any of the above checks fail, then Baseline Test 15.1-LanguagePage fails. Fail: 15.1-2 fails.