{
  "id": "SC-3.1.2",
  "rulePrefix": "SC-3.1.2",
  "variant": null,
  "ruleType": "synthetic-sc",
  "scanScope": "specimen",
  "synthetic": true,
  "status": "current",
  "title": "Foreign phrase without lang on element",
  "summary": "A French quotation appears in an English page without lang markup.",
  "whyItFails": "Screen readers may use English pronunciation rules for French text because the language change is not marked.",
  "principles": [
    "understandable"
  ],
  "guidelines": [
    "3.1"
  ],
  "successCriteria": [
    {
      "id": "3.1.2",
      "name": "Language of Parts",
      "level": "AA",
      "slug": "language-of-parts"
    }
  ],
  "versions": [
    "2.0",
    "2.1",
    "2.2"
  ],
  "automatable": "partial",
  "requires": [
    "html"
  ],
  "isolated": true,
  "pairWith": [],
  "w3c": {
    "understanding": [
      "https://www.w3.org/WAI/WCAG22/Understanding/language-of-parts"
    ],
    "quickref": [
      "https://www.w3.org/WAI/WCAG22/quickref/#language-of-parts"
    ]
  },
  "specimen": {
    "html": "<p>The French quote <q lang=\"en\">Bonjour le monde</q> is marked as English.</p>",
    "css": "",
    "js": "",
    "assets": []
  },
  "expectedFindings": [
    {
      "sc": "3.1.2",
      "outcome": "fail",
      "note": "Specimen demonstrates failure of 3.1.2."
    }
  ],
  "mustNotFlag": [],
  "manualCheck": "Confirm the foreign phrase has no lang attribute on itself or a parent element.",
  "generated": {
    "url": "https://wcagfail.patternd.io/specimens/SC-3.1.2/",
    "lastmod": "2026-10-08"
  }
}
