{
  "id": "F10",
  "rulePrefix": "F10",
  "variant": null,
  "ruleType": "w3c-failure",
  "scanScope": "specimen",
  "synthetic": false,
  "status": "current",
  "title": "Failure of Success Criterion 2.1.2 and Conformance Requirement 5 due to combining multiple content formats in a way\n                    that traps users inside one format type",
  "summary": "combining multiple content formats in a way\n                    that traps users inside one format type",
  "whyItFails": "This page reproduces the F10 failure pattern so auditors can verify detection against 2.1.2.",
  "principles": [
    "operable"
  ],
  "guidelines": [
    "2.1"
  ],
  "successCriteria": [
    {
      "id": "2.1.2",
      "name": "No Keyboard Trap",
      "level": "A",
      "slug": "no-keyboard-trap"
    }
  ],
  "versions": [
    "2.0",
    "2.1",
    "2.2"
  ],
  "automatable": "partial",
  "requires": [
    "html",
    "js",
    "input"
  ],
  "isolated": true,
  "pairWith": [],
  "w3c": {
    "understanding": [
      "https://www.w3.org/WAI/WCAG22/Understanding/no-keyboard-trap"
    ],
    "quickref": [
      "https://www.w3.org/WAI/WCAG22/quickref/#no-keyboard-trap"
    ],
    "technique": "https://www.w3.org/WAI/WCAG22/Techniques/failures/F10"
  },
  "specimen": {
    "html": "<iframe id=\"f10-trap\" title=\"Embedded widget\" width=\"280\" height=\"120\" srcdoc=\"<button autofocus>Trapped focus</button><p>Tab cannot leave this frame.</p>\"></iframe>",
    "css": "",
    "js": "document.getElementById('f10-trap')?.addEventListener('load', () => {\n  try {\n    const doc = document.getElementById('f10-trap').contentDocument;\n    doc.addEventListener('keydown', (e) => { if (e.key === 'Tab') e.preventDefault(); });\n  } catch (_) {}\n});",
    "assets": []
  },
  "expectedFindings": [
    {
      "sc": "2.1.2",
      "outcome": "fail",
      "note": "Specimen demonstrates failure of 2.1.2."
    }
  ],
  "mustNotFlag": [],
  "manualCheck": "Confirm the specimen demonstrates the documented F10 failure in isolation.",
  "generated": {
    "url": "https://wcagfail.patternd.io/specimens/F10/",
    "lastmod": "2026-10-08"
  }
}
