Test Case Summary
Test Case ID
TCID: TC15.B-2-fail-1
TC Version: 1
Baseline Version: 3.1
Applicable Standard: WCAG 3.1.2
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
Test Procedure: 15.B Language of Parts
Baseline Test ID: 15.B-LanguagePart
Test Instruction: 2
Test Case Detail
Expected Baseline Result
FAIL
The French part has no lang attribute.
Test Data
Single-Page URL
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.B-1 | Identify the human language of the text content that differs from the default human language of the page. | French |
| 15.A-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.A-LanguagePage fails. | Fail: 15.A-2 fails. |