diff --git a/accessibility-checker-engine/src/v4/rules/draggable_alternative_exists.ts b/accessibility-checker-engine/src/v4/rules/draggable_alternative_exists.ts index cc3070873..b3e71b3d4 100644 --- a/accessibility-checker-engine/src/v4/rules/draggable_alternative_exists.ts +++ b/accessibility-checker-engine/src/v4/rules/draggable_alternative_exists.ts @@ -37,7 +37,7 @@ export let draggable_alternative_exists: Rule = { } }, rulesets: [{ - id: ["IBM_Accessibility_next", "WCAG_2_2"], + id: [ "IBM_Accessibility", "IBM_Accessibility_next", "WCAG_2_2"], num: ["2.5.7"], level: eRulePolicy.VIOLATION, toolkitLevel: eToolkitLevel.LEVEL_THREE diff --git a/accessibility-checker-engine/src/v4/rules/element_tabbable_unobscured.ts b/accessibility-checker-engine/src/v4/rules/element_tabbable_unobscured.ts index 9de3f81e4..6c76cb1bc 100644 --- a/accessibility-checker-engine/src/v4/rules/element_tabbable_unobscured.ts +++ b/accessibility-checker-engine/src/v4/rules/element_tabbable_unobscured.ts @@ -36,7 +36,7 @@ export let element_tabbable_unobscured: Rule = { } }, rulesets: [{ - id: ["IBM_Accessibility_next", "WCAG_2_2"], + id: [ "IBM_Accessibility", "IBM_Accessibility_next", "WCAG_2_2"], num: ["2.4.11"], level: eRulePolicy.VIOLATION, toolkitLevel: eToolkitLevel.LEVEL_THREE diff --git a/accessibility-checker-engine/src/v4/rules/target_spacing_sufficient.ts b/accessibility-checker-engine/src/v4/rules/target_spacing_sufficient.ts index f85e51b1c..0dc4c2b17 100644 --- a/accessibility-checker-engine/src/v4/rules/target_spacing_sufficient.ts +++ b/accessibility-checker-engine/src/v4/rules/target_spacing_sufficient.ts @@ -47,14 +47,14 @@ } }, rulesets: [{ - id: ["IBM_Accessibility_next", "WCAG_2_2"], + id: [ "IBM_Accessibility", "IBM_Accessibility_next", "WCAG_2_2"], num: ["2.5.8"], level: eRulePolicy.VIOLATION, toolkitLevel: eToolkitLevel.LEVEL_THREE, reasonCodes: ["pass_spacing","pass_sized", "pass_inline","pass_default", "violation_spacing", "potential_overlap"] }, { - id: ["IBM_Accessibility_next", "WCAG_2_2"], + id: [ "IBM_Accessibility", "IBM_Accessibility_next", "WCAG_2_2"], num: ["2.5.8"], level: eRulePolicy.RECOMMENDATION, toolkitLevel: eToolkitLevel.LEVEL_THREE, diff --git a/accessibility-checker-engine/src/v4/rulesets.ts b/accessibility-checker-engine/src/v4/rulesets.ts index 329bbe51a..aeaa5c0fc 100644 --- a/accessibility-checker-engine/src/v4/rulesets.ts +++ b/accessibility-checker-engine/src/v4/rulesets.ts @@ -111,9 +111,9 @@ export let a11yRulesets: Guideline[] = [ }, { id: "IBM_Accessibility", - name: "IBM Accessibility 7.2", + name: "IBM Accessibility 7.3", category: eGuidelineCategory.ACCESSIBILITY, - description: "Rules for WCAG 2.0 & 2.1 A and AA plus additional IBM supplemental requirements.", + description: "Rules for WCAG 2.0, 2.1, 2.2 A and AA plus additional IBM supplemental requirements.", // This ruleset has all 2.0 and 2.1 checkpoints that are A or AA checkpoints: SCs .filter(sc => (sc.level === "A" || sc.level === "AA" || sc.level === "NA") && (sc.wcagType === "2.0" || sc.wcagType === "2.1" || sc.wcagType === "2.2" || sc.wcagType === "NA")) @@ -127,7 +127,7 @@ export let a11yRulesets: Guideline[] = [ }, { id: "IBM_Accessibility_next", - name: "IBM Accessibility 7.3", + name: "IBM Accessibility next", category: eGuidelineCategory.ACCESSIBILITY, description: "Rules for WCAG 2.0, 2.1, 2.2 A and AA plus additional IBM supplemental requirements.", // This ruleset has all 2.0 and 2.1 checkpoints that are A or AA diff --git a/accessibility-checker-extension/src/ts/docs/QuickGuideACApp.tsx b/accessibility-checker-extension/src/ts/docs/QuickGuideACApp.tsx index 267ce5bb8..05c1a28c6 100644 --- a/accessibility-checker-extension/src/ts/docs/QuickGuideACApp.tsx +++ b/accessibility-checker-extension/src/ts/docs/QuickGuideACApp.tsx @@ -472,7 +472,7 @@ export class QuickGuideACApp extends React.Component<{}, quickGuideACAppState> { Select one of the following:
IBM Accessibility 7.2: Rules for WCAG 2.1 plus additional IBM requirements.
-IBM Accessibility 7.3: Rules for WCAG 2.2 plus additional IBM requirements. This will be the default starting Oct 1, 2024.
+IBM Accessibility 7.3: Rules for WCAG 2.2 plus additional IBM requirements. Default Oct 1, 2024.
WCAG 2.2 (A, AA): Rules for the latest W3C specification. Content that conforms to WCAG 2.2 also conforms to 2.1 and 2.0.
WCAG 2.1 (A, AA): Content that conforms to WCAG 2.1 also conforms to WCAG 2.0. Referenced by EN 301 549 and other policies, but not the latest W3C specification.
WCAG 2.0 (A, AA): Referenced by US Section 508, but not the latest W3C specification.
diff --git a/accessibility-checker/test/baselines/JSONObjectStructureVerification.html.json b/accessibility-checker/test/baselines/JSONObjectStructureVerification.html.json index 37a92bf8b..706a25a55 100644 --- a/accessibility-checker/test/baselines/JSONObjectStructureVerification.html.json +++ b/accessibility-checker/test/baselines/JSONObjectStructureVerification.html.json @@ -1,43 +1,72 @@ { "results": [ { - "ruleId": "page_title_valid", + "ruleId": "html_lang_valid", "value": [ "VIOLATION", "PASS" ], "path": { - "dom": "/html[1]/head[1]/title[1]", + "dom": "/html[1]", "aria": "/document[1]" }, + "ruleTime": 0, "reasonId": "Pass_0", - "message": "Rule Passed", + "message": "Lang has a valid primary lang and conforms to BCP 47", + "messageArgs": [], + "apiArgs": [], + "bounds": { + "left": 0, + "top": 0, + "height": 144, + "width": 800 + }, + "snippet": "", + "category": "Accessibility", + "ignored": false, + "level": "pass", + "help": "https://able.ibm.com/rules/archives/preview/doc/en-US/html_lang_valid.html#%7B%22message%22%3A%22Lang%20has%20a%20valid%20primary%20lang%20and%20conforms%20to%20BCP%2047%22%2C%22snippet%22%3A%22%3Chtml%20lang%3D%5C%22en%5C%22%3E%22%2C%22value%22%3A%5B%22VIOLATION%22%2C%22PASS%22%5D%2C%22reasonId%22%3A%22Pass_0%22%2C%22ruleId%22%3A%22html_lang_valid%22%2C%22msgArgs%22%3A%5B%5D%7D" + }, + { + "ruleId": "html_lang_exists", + "value": [ + "VIOLATION", + "PASS" + ], + "path": { + "dom": "/html[1]", + "aria": "/document[1]" + }, + "ruleTime": 0, + "reasonId": "Pass_0", + "message": "Page language detected as \"en\"", "messageArgs": [ - "Helo World" + "en" ], "apiArgs": [], "bounds": { "left": 0, "top": 0, - "height": 0, - "width": 0 + "height": 144, + "width": 800 }, - "snippet": "