diff --git a/.gitignore b/.gitignore index d4005cf..1ae22a9 100644 --- a/.gitignore +++ b/.gitignore @@ -62,8 +62,7 @@ kayle/screenshot.png chrome-extension # build custom extension -build-extension.js -build-rules.js +kayle/builder/*.js # data dir _data \ No newline at end of file diff --git a/fast_htmlcs/Standards/WCAG2AAA/Sniffs/Principle1/Guideline1_3/1_3_1.ts b/fast_htmlcs/Standards/WCAG2AAA/Sniffs/Principle1/Guideline1_3/1_3_1.ts index 029200e..133e74d 100755 --- a/fast_htmlcs/Standards/WCAG2AAA/Sniffs/Principle1/Guideline1_3/1_3_1.ts +++ b/fast_htmlcs/Standards/WCAG2AAA/Sniffs/Principle1/Guideline1_3/1_3_1.ts @@ -972,7 +972,7 @@ _global.HTMLCS_WCAG2AAA_Sniffs_Principle1_Guideline1_3_1_3_1 = { } } }, - testHeadingOrder: function (top, level) { + testHeadingOrder: function (top) { let lastHeading = 0; for (const heading of HTMLCS.util.getAllElements( @@ -988,7 +988,7 @@ _global.HTMLCS_WCAG2AAA_Sniffs_Principle1_Guideline1_3_1_3_1 = { // If last heading is empty, we are at document top and we are // expecting a H1, generally speaking. HTMLCS.addMessage( - level, + HTMLCS.ERROR, heading, _global.HTMLCS.getTranslation("1_3_1_G141_a").replace( /\{\{headingNum\}\}/g, @@ -999,7 +999,7 @@ _global.HTMLCS_WCAG2AAA_Sniffs_Principle1_Guideline1_3_1_3_1 = { } HTMLCS.addMessage( - level, + HTMLCS.ERROR, heading, _global.HTMLCS.getTranslation("1_3_1_G141_b") .replace(/\{\{headingNum\}\}/g, headingNumStr) diff --git a/fast_htmlcs/Standards/WCAG2AAA/Sniffs/Principle1/Guideline1_3/1_3_1_A.ts b/fast_htmlcs/Standards/WCAG2AAA/Sniffs/Principle1/Guideline1_3/1_3_1_A.ts index bf04197..4e05972 100644 --- a/fast_htmlcs/Standards/WCAG2AAA/Sniffs/Principle1/Guideline1_3/1_3_1_A.ts +++ b/fast_htmlcs/Standards/WCAG2AAA/Sniffs/Principle1/Guideline1_3/1_3_1_A.ts @@ -13,8 +13,7 @@ _global.HTMLCS_WCAG2AAA_Sniffs_Principle1_Guideline1_3_1_3_1_A = { process: (element, top) => { if (element === top) { HTMLCS_WCAG2AAA_Sniffs_Principle1_Guideline1_3_1_3_1.testHeadingOrder( - top, - HTMLCS.ERROR + top ); } }, diff --git a/fast_htmlcs/Standards/WCAG2AAA/Sniffs/Principle1/Guideline1_3/1_3_1_AAA.ts b/fast_htmlcs/Standards/WCAG2AAA/Sniffs/Principle1/Guideline1_3/1_3_1_AAA.ts index 2e21244..6643dfd 100644 --- a/fast_htmlcs/Standards/WCAG2AAA/Sniffs/Principle1/Guideline1_3/1_3_1_AAA.ts +++ b/fast_htmlcs/Standards/WCAG2AAA/Sniffs/Principle1/Guideline1_3/1_3_1_AAA.ts @@ -14,8 +14,7 @@ _global.HTMLCS_WCAG2AAA_Sniffs_Principle1_Guideline1_3_1_3_1_AAA = { process: (element, top) => { if (element === top) { HTMLCS_WCAG2AAA_Sniffs_Principle1_Guideline1_3_1_3_1.testHeadingOrder( - top, - HTMLCS.ERROR + top ); } }, diff --git a/fast_htmlcs/globals.d.ts b/fast_htmlcs/globals.d.ts index b246232..0d7b24c 100644 --- a/fast_htmlcs/globals.d.ts +++ b/fast_htmlcs/globals.d.ts @@ -106,7 +106,7 @@ type TestContrastRatio = ( type Snif = null | { isValidLanguageTag?(element): boolean; testSemanticPresentationRole(element: Element): boolean; - testHeadingOrder?(element: Element, typeCode: string): boolean; + testHeadingOrder?(element: Element): boolean; testLabelsOnInputs?(element: Element, top: Element, t: boolean): boolean; testContrastRatio?: TestContrastRatio; }; @@ -163,7 +163,7 @@ type GuideLine = { testOptgroup?(element: Element): void; testRequiredFieldsets?(element: Element): void; testListsWithBreaks?(element: Element): void; - testHeadingOrder?(element: Element, level: string): void; + testHeadingOrder?(element: Element): void; testEmptyHeading?(element: Element): void; testUnstructuredNavLinks?(element: Element): void; testIframeTitle?(element: Element): void; diff --git a/kayle/build-extension.ts b/kayle/builder/build-extension.ts similarity index 97% rename from kayle/build-extension.ts rename to kayle/builder/build-extension.ts index bcbdf4c..c28ab6b 100644 --- a/kayle/build-extension.ts +++ b/kayle/builder/build-extension.ts @@ -1,6 +1,6 @@ // compiler the runners into a valid chrome extension import { writeFileSync, mkdirSync, existsSync } from "fs"; -import { runnersJavascript } from "./build/runner-js"; +import { runnersJavascript } from "../build/runner-js"; import { cwd } from "process"; import { join } from "path"; diff --git a/kayle/builder/build-htmlcs-params.ts b/kayle/builder/build-htmlcs-params.ts new file mode 100644 index 0000000..b8224e6 --- /dev/null +++ b/kayle/builder/build-htmlcs-params.ts @@ -0,0 +1,60 @@ +import { lstatSync, readdirSync, readFileSync } from "fs"; +import { join, parse as pathParse } from "path"; +import { parse } from "acorn"; +import { simple } from "acorn-walk"; +import type { ParamList } from "./build-types"; + +const paramList: ParamList[] = []; + +const processDirectory = (directory) => { + readdirSync(directory).forEach((file) => { + const fullPath = join(directory, file); + if (lstatSync(fullPath).isDirectory()) { + processDirectory(fullPath); + } else if (fullPath.endsWith(".js")) { + processFile(fullPath); + } + }); +}; + +const processFile = (filePath) => { + const code = readFileSync(filePath, "utf8"); + const ast = parse(code, { sourceType: "script", ecmaVersion: 2020 }); + + simple(ast, { + CallExpression(node) { + if ( + node.callee.type === "MemberExpression" && + // @ts-ignore + node.callee.object.name === "HTMLCS" && + // @ts-ignore + node.callee.property.name === "addMessage" + ) { + const params = node.arguments.map((arg) => { + if (arg.type === "Literal") { + return arg.value; + } + if (arg.type === "Identifier") { + return arg.name; + } + if (arg.type === "MemberExpression") { + // @ts-ignore + return arg.property.name?.toLowerCase(); + } + + return null; + }); + + params.push(pathParse(filePath).name); + + paramList.push(params as ParamList); + } + }, + }); +}; + +// process the params to a list +export const processParams = () => { + processDirectory("../fast_htmlcs/dist/Standards"); + return paramList; +}; diff --git a/kayle/build-rules.ts b/kayle/builder/build-rules.ts similarity index 66% rename from kayle/build-rules.ts rename to kayle/builder/build-rules.ts index a8284b8..7741b56 100644 --- a/kayle/build-rules.ts +++ b/kayle/builder/build-rules.ts @@ -2,19 +2,14 @@ import { chromium } from "playwright"; import { Standard, kayle } from "kayle"; import { writeFile } from "fs/promises"; import { format } from "prettier"; - -type Rule = { - ruleId: string; - description?: string; - help?: string; - helpUrl?: string; - tags?: string[]; - actIds?: string[]; -}; +import { htmlcsRuleMap } from "./htmlcs-rule-map"; +import { processParams } from "./build-htmlcs-params"; +import type { Rule } from "./build-types"; (async () => { const browser = await chromium.launch({ headless: true }); const page = await browser.newPage(); + page.on("console", (msg) => console.log("PAGE LOG:", msg.text())); const fast_htmlcs_rules: Rule[] = []; const fast_axe_rules: Rule[] = []; @@ -32,26 +27,29 @@ type Rule = { true, ); - await page.exposeFunction("pushHtmlcsRule", (t: Rule) => { - fast_htmlcs_rules.push(t); - }); + const paramList = await processParams(); + + await page.evaluate((o) => { + window.paramList = o; + }, paramList); - await page.exposeFunction("pushAxeRule", (t: Rule) => { - fast_axe_rules.push(t); + await page.addScriptTag({ + content: `window.htmlcsRuleMap = ${htmlcsRuleMap.toString()};`, }); + await page.exposeFunction("pushHtmlcsRule", (t: Rule) => + fast_htmlcs_rules.push(t), + ); + + await page.exposeFunction("pushAxeRule", (t: Rule) => fast_axe_rules.push(t)); + await page.evaluate(() => { - // @ts-ignore for (const r of window.axe.getRules()) { - // @ts-ignore we need to get the rules description and urls. window.pushAxeRule(r); } - for (const k of Object.keys(window)) { - if (k.startsWith("HTMLCS_WCAG2AAA_Sniffs_Principle")) { - // @ts-ignore - window.pushHtmlcsRule({ - ruleId: k, - }); + for (const k of window.paramList) { + if (k && k.length >= 4) { + window.pushHtmlcsRule(window.htmlcsRuleMap(k)); } } }); diff --git a/kayle/builder/build-types.ts b/kayle/builder/build-types.ts new file mode 100644 index 0000000..06f1ca2 --- /dev/null +++ b/kayle/builder/build-types.ts @@ -0,0 +1,24 @@ +export type Rule = { + ruleId: string; + description?: string; + help?: string; + helpUrl?: string | string[]; + tags?: string[]; + actIds?: string[]; + ruleType?: "error" | "warning" | "notice"; +}; + +export type ParamList = string[]; + +declare global { + interface Window { + HTMLCS: any; + axe: any; + pushHtmlcsRule: (r: Rule) => void; + pushAxeRule: (r: Rule) => void; + htmlcsRuleMap: (t: ParamList) => Rule; + paramList: ParamList[]; + } +} + +window.HTMLCS = window.HTMLCS || {}; diff --git a/kayle/builder/htmlcs-rule-map.ts b/kayle/builder/htmlcs-rule-map.ts new file mode 100644 index 0000000..c56e511 --- /dev/null +++ b/kayle/builder/htmlcs-rule-map.ts @@ -0,0 +1,44 @@ +import type { Rule, ParamList } from "./build-types"; + +// Hand stich the rules to map from htmlcs. +// We need to map the ruleId to the translation file key. + +// map the rules to a detailed object +// the descriptions handling is not perfect and needs to handle split cases. +export const htmlcsRuleMap = (rule: ParamList) => { + const concatWcagLink = (l: string) => + `https://www.w3.org/TR/WCAG20-TECHS/${l}`; + + const helpLinks = rule[3] ? rule[3].split(",") : []; + const section508 = !!rule[2]; + + // translations that do not use _ to concat + const directRuleAssignments = [ + "Check", + "SinglePointer_Check", + "AccessibleName", + "Mousedown_Check", + "Touchstart_Check", + "Devicemotion", + ]; + + // TODO: PATCH RULES FROM INLINE TRANSLATIONS + + const description = + rule[2] || + window.HTMLCS.getTranslation(`${rule[4]}_${rule[3]}`) || + window.HTMLCS.getTranslation(`${rule[4]}${rule[3]}`) || + ""; + + return { + ruleId: + section508 || !description + ? rule[3] + : `${rule[4]}${directRuleAssignments.includes(rule[3]) ? "." : "_"}${rule[3]}`, + description: description, + helpUrl: section508 + ? [] + : helpLinks.map((r) => concatWcagLink(r.split(".")[0])), + ruleType: rule[0], + }; +}; diff --git a/kayle/lib/rules/htmlcs-rules.ts b/kayle/lib/rules/htmlcs-rules.ts index ca50f87..eab789e 100644 --- a/kayle/lib/rules/htmlcs-rules.ts +++ b/kayle/lib/rules/htmlcs-rules.ts @@ -1,83 +1,1826 @@ /* THIS FILE WAS CREATED DYNAMICALLY - DO NOT EDIT */ export const htmlcsRules = [ - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle1_Guideline1_1_1_1_1' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle1_Guideline1_2_1_2_1' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle1_Guideline1_2_1_2_2' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle1_Guideline1_2_1_2_3' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle1_Guideline1_2_1_2_4' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle1_Guideline1_2_1_2_5' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle1_Guideline1_2_1_2_6' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle1_Guideline1_2_1_2_7' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle1_Guideline1_2_1_2_8' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle1_Guideline1_2_1_2_9' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle1_Guideline1_3_1_3_1_A' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle1_Guideline1_3_1_3_1_AAA' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle1_Guideline1_3_1_3_1' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle1_Guideline1_3_1_3_2' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle1_Guideline1_3_1_3_3' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle1_Guideline1_3_1_3_4' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle1_Guideline1_3_1_3_5' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle1_Guideline1_3_1_3_6' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle1_Guideline1_4_1_4_1' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle1_Guideline1_4_1_4_10' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle1_Guideline1_4_1_4_11' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle1_Guideline1_4_1_4_12' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle1_Guideline1_4_1_4_13' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle1_Guideline1_4_1_4_2' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle1_Guideline1_4_1_4_3_Contrast' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle1_Guideline1_4_1_4_3_F24' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle1_Guideline1_4_1_4_3' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle1_Guideline1_4_1_4_4' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle1_Guideline1_4_1_4_5' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle1_Guideline1_4_1_4_6' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle1_Guideline1_4_1_4_7' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle1_Guideline1_4_1_4_8' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle1_Guideline1_4_1_4_9' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle2_Guideline2_1_2_1_1' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle2_Guideline2_1_2_1_2' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle2_Guideline2_1_2_1_4' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle2_Guideline2_2_2_2_1' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle2_Guideline2_2_2_2_2' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle2_Guideline2_2_2_2_3' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle2_Guideline2_2_2_2_4' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle2_Guideline2_2_2_2_5' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle2_Guideline2_2_2_2_6' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle2_Guideline2_3_2_3_1' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle2_Guideline2_3_2_3_2' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle2_Guideline2_3_2_3_3' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle2_Guideline2_4_2_4_1' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle2_Guideline2_4_2_4_2' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle2_Guideline2_4_2_4_3' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle2_Guideline2_4_2_4_4' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle2_Guideline2_4_2_4_5' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle2_Guideline2_4_2_4_6' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle2_Guideline2_4_2_4_7' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle2_Guideline2_4_2_4_8' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle2_Guideline2_4_2_4_9' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle2_Guideline2_5_2_5_1' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle2_Guideline2_5_2_5_2' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle2_Guideline2_5_2_5_3' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle2_Guideline2_5_2_5_4' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle2_Guideline2_5_2_5_5' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle2_Guideline2_5_2_5_6' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle3_Guideline3_1_3_1_1' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle3_Guideline3_1_3_1_2' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle3_Guideline3_1_3_1_3' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle3_Guideline3_1_3_1_4' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle3_Guideline3_1_3_1_5' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle3_Guideline3_1_3_1_6' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle3_Guideline3_2_3_2_1' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle3_Guideline3_2_3_2_2' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle3_Guideline3_2_3_2_3' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle3_Guideline3_2_3_2_4' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle3_Guideline3_2_3_2_5' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle3_Guideline3_3_3_3_1' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle3_Guideline3_3_3_3_2' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle3_Guideline3_3_3_3_3' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle3_Guideline3_3_3_3_4' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle3_Guideline3_3_3_3_5' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle3_Guideline3_3_3_3_6' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle4_Guideline4_1_4_1_1' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle4_Guideline4_1_4_1_2' }, - { ruleId: 'HTMLCS_WCAG2AAA_Sniffs_Principle4_Guideline4_1_4_1_3' }, + { + ruleId: 'Audio', + description: + 'For multimedia containing audio only, ensure an alternative is available, such as a full text transcript.', + helpUrl: [], + ruleType: 'notice', + }, + { + ruleId: 'Img.EmptyAltInLink', + description: + 'Img element is the only content of the link, but is missing alt text. The alt text should describe the purpose of the link.', + helpUrl: [], + ruleType: 'error', + }, + { + ruleId: 'Img.NullAltWithTitle', + description: + 'Img element with empty alt text must have absent or empty title attribute.', + helpUrl: [], + ruleType: 'error', + }, + { + ruleId: 'Img.Ignored', + description: + 'Img element is marked so that it is ignored by Assistive Technology.', + helpUrl: [], + ruleType: 'warning', + }, + { + ruleId: 'Img.MissingAlt', + description: + 'Img element missing an alt attribute. Use the alt attribute to specify a short text alternative.', + helpUrl: [], + ruleType: 'error', + }, + { + ruleId: 'Img.GeneralAlt', + description: + "Ensure that the img element's alt text serves the same purpose and presents the same information as the image.", + helpUrl: [], + ruleType: 'notice', + }, + { + ruleId: 'InputImage.MissingAlt', + description: + "Image submit button missing an alt attribute. Specify a text alternative that describes the button's function, using the alt attribute.", + helpUrl: [], + ruleType: 'error', + }, + { + ruleId: 'InputImage.GeneralAlt', + description: + "Ensure that the image submit button's alt text identifies the purpose of the button.", + helpUrl: [], + ruleType: 'notice', + }, + { + ruleId: 'Area.MissingAlt', + description: + 'Area element in an image map missing an alt attribute. Each area element must have a text alternative that describes the function of the image map area.', + helpUrl: [], + ruleType: 'error', + }, + { + ruleId: 'Area.GeneralAlt', + description: + "Ensure that the area element's text alternative serves the same purpose as the part of image map image it references.", + helpUrl: [], + ruleType: 'notice', + }, + { + ruleId: 'Object.MissingBody', + description: + 'Object elements must contain a text alternative after all other alternatives are exhausted.', + helpUrl: [], + ruleType: 'error', + }, + { + ruleId: 'Object.GeneralAlt', + description: + 'Check that short (and if appropriate, long) text alternatives are available for non-text content that serve the same purpose and present the same information.', + helpUrl: [], + ruleType: 'notice', + }, + { + ruleId: 'Applet.MissingBody', + description: + "Applet elements must contain a text alternative in the element's body, for browsers without support for the applet element.", + helpUrl: [], + ruleType: 'error', + }, + { + ruleId: 'Applet.MissingAlt', + description: + 'Applet elements must contain an alt attribute, to provide a text alternative to browsers supporting the element but are unable to load the applet.', + helpUrl: [], + ruleType: 'error', + }, + { + ruleId: 'Applet.GeneralAlt', + description: + 'Check that short (and if appropriate, long) text alternatives are available for non-text content that serve the same purpose and present the same information.', + helpUrl: [], + ruleType: 'notice', + }, + { + ruleId: 'Video', + description: + 'For multimedia containing video, ensure a synchronised audio description or text alternative for the video portion is provided.', + helpUrl: [], + ruleType: 'notice', + }, + { + ruleId: 'Captions', + description: + 'For multimedia containing synchronised audio and video, ensure synchronised captions are provided for the audio portion.', + helpUrl: [], + ruleType: 'notice', + }, + { + ruleId: 'Colour', + description: + 'Ensure that any information conveyed using colour alone is also available without colour, such as through context or markup.', + helpUrl: [], + ruleType: 'notice', + }, + { + ruleId: 'Linearised', + description: + 'Ensure that content is ordered in a meaningful sequence when linearised, such as when style sheets are disabled.', + helpUrl: [], + ruleType: 'notice', + }, + { + ruleId: 'HiddenText', + description: + 'If content is hidden and made visible using scripting (such as "click to expand" sections), ensure this content is readable when scripts and style sheets are disabled.', + helpUrl: [], + ruleType: 'notice', + }, + { + ruleId: 'HeadingOrder', + description: '', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/HeadingOrder'], + ruleType: 'error', + }, + { + ruleId: 'TableHeaders', + description: + 'This table has no headers. If this is a data table, ensure row and column headers are identified using th elements.', + helpUrl: [], + ruleType: 'notice', + }, + { + ruleId: 'IncorrectHeadersAttr', + description: '', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/IncorrectHeadersAttr'], + ruleType: 'error', + }, + { + ruleId: 'MissingHeadersAttrs', + description: + 'The relationship between td elements and their associated th elements is not defined. As this table has multiple levels of th elements, you must use the headers attribute on td elements.', + helpUrl: [], + ruleType: 'error', + }, + { + ruleId: 'MissingHeaderIds', + description: + "Not all th elements in this table contain an id attribute. These cells should contain ids so that they may be referenced by td elements' headers attributes.", + helpUrl: [], + ruleType: 'error', + }, + { + ruleId: 'IncompleteHeadersAttrs', + description: + 'Not all td elements in this table contain a headers attribute. Each headers attribute should list the ids of all th elements associated with that cell.', + helpUrl: [], + ruleType: 'error', + }, + { + ruleId: 'Frames', + description: '', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/Frames'], + ruleType: 'error', + }, + { + ruleId: 'Flicker', + description: + 'Check that no component of the content flickers at a rate of greater than 2 and less than 55 times per second.', + helpUrl: [], + ruleType: 'notice', + }, + { + ruleId: 'AltVersion', + description: + "If this page cannot be made compliant, a text-only page with equivalent information or functionality should be provided. The alternative page needs to be updated in line with this page's content.", + helpUrl: [], + ruleType: 'notice', + }, + { + ruleId: 'EmptyAnchorNoId', + description: + 'Anchor element found with no link content and no name and/or ID attribute.', + helpUrl: [], + ruleType: 'error', + }, + { + ruleId: 'PlaceholderAnchor', + description: + 'Anchor element found with link content, but no href, ID, or name attribute has been supplied.', + helpUrl: [], + ruleType: 'warning', + }, + { + ruleId: 'NoContentAnchor', + description: + 'Anchor element found with a valid href attribute, but no link content has been supplied.', + helpUrl: [], + ruleType: 'error', + }, + { + ruleId: 'DblClick', + description: + 'Ensure the functionality provided by double-clicking on this element is available through the keyboard.', + helpUrl: [], + ruleType: 'warning', + }, + { + ruleId: 'MouseOver', + description: + 'Ensure the functionality provided by mousing over this element is available through the keyboard; for instance, using the focus event.', + helpUrl: [], + ruleType: 'warning', + }, + { + ruleId: 'MouseOut', + description: + 'Ensure the functionality provided by mousing out of this element is available through the keyboard; for instance, using the blur event.', + helpUrl: [], + ruleType: 'warning', + }, + { + ruleId: 'MouseMove', + description: + 'Ensure the functionality provided by moving the mouse on this element is available through the keyboard.', + helpUrl: [], + ruleType: 'warning', + }, + { + ruleId: 'MouseDown', + description: + 'Ensure the functionality provided by mousing down on this element is available through the keyboard; for instance, using the keydown event.', + helpUrl: [], + ruleType: 'warning', + }, + { + ruleId: 'MouseUp', + description: + 'Ensure the functionality provided by mousing up on this element is available through the keyboard; for instance, using the keyup event.', + helpUrl: [], + ruleType: 'warning', + }, + { + ruleId: 'PluginLink', + description: + 'If external media requires a plugin or application to view, ensure a link is provided to a plugin or application that complies with Section 508 accessibility requirements for applications.', + helpUrl: [], + ruleType: 'notice', + }, + { + ruleId: 'Errors', + description: + 'If an input error is automatically detected in this form, check that the item(s) in error are identified and the error(s) are described to the user in text.', + helpUrl: [], + ruleType: 'notice', + }, + { + ruleId: 'Labels', + description: + 'Check that descriptive labels or instructions (including for required fields) are provided for user input in this form.', + helpUrl: [], + ruleType: 'notice', + }, + { + ruleId: 'KeyboardNav', + description: + 'Ensure that this form can be navigated using the keyboard and other accessibility tools.', + helpUrl: [], + ruleType: 'notice', + }, + { + ruleId: 'SkipLinks', + description: + 'Ensure that any common navigation elements can be bypassed; for instance, by use of skip links, header elements, or ARIA landmark roles.', + helpUrl: [], + ruleType: 'notice', + }, + { + ruleId: 'NoSuchID', + description: '', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/NoSuchID'], + ruleType: 'error', + }, + { + ruleId: 'NoSuchIDFragment', + description: '', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/NoSuchIDFragment'], + ruleType: 'warning', + }, + { + ruleId: 'TimeLimit', + description: + 'If a timed response is required on this page, alert the user and provide sufficient time to allow them to indicate that more time is required.', + helpUrl: [], + ruleType: 'notice', + }, + { + ruleId: 'MetaRedirect', + description: + 'Meta refresh tag used to redirect to another page, with a time limit that is not zero. Users cannot control this time limit.', + helpUrl: [], + ruleType: 'error', + }, + { + ruleId: 'MetaRefresh', + description: + 'Meta refresh tag used to refresh the current page. Users cannot control the time limit for this refresh.', + helpUrl: [], + ruleType: 'error', + }, + { + ruleId: '1_1_1_H30.2', + description: + 'Img element is the only content of the link, but is missing alt text. The alt text should describe the purpose of the link.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H30'], + ruleType: 'error', + }, + { + ruleId: '1_1_1_H67.1', + description: + 'Img element with empty alt text must have absent or empty title attribute.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H67'], + ruleType: 'error', + }, + { + ruleId: '1_1_1_H67.2', + description: + 'Img element is marked so that it is ignored by Assistive Technology.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H67'], + ruleType: 'warning', + }, + { + ruleId: '1_1_1_H37', + description: + 'Img element missing an alt attribute. Use the alt attribute to specify a short text alternative.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H37'], + ruleType: 'error', + }, + { + ruleId: '1_1_1_G94.Image', + description: + "Ensure that the img element's alt text serves the same purpose and presents the same information as the image.", + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/G94'], + ruleType: 'notice', + }, + { + ruleId: '1_1_1_H36', + description: + "Image submit button missing an alt attribute. Specify a text alternative that describes the button's function, using the alt attribute.", + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H36'], + ruleType: 'error', + }, + { + ruleId: '1_1_1_G94.Button', + description: + "Ensure that the image submit button's alt text identifies the purpose of the button.", + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/G94'], + ruleType: 'notice', + }, + { + ruleId: '1_1_1_H24', + description: + 'Area element in an image map missing an alt attribute. Each area element must have a text alternative that describes the function of the image map area.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H24'], + ruleType: 'error', + }, + { + ruleId: '1_1_1_H24.2', + description: + "Ensure that the area element's text alternative serves the same purpose as the part of image map image it references.", + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H24'], + ruleType: 'notice', + }, + { + ruleId: '1_1_1_G73,G74', + description: + 'If this image cannot be fully described in a short text alternative, ensure a long text alternative is also available, such as in the body text or through a link.', + helpUrl: [ + 'https://www.w3.org/TR/WCAG20-TECHS/G73', + 'https://www.w3.org/TR/WCAG20-TECHS/G74', + ], + ruleType: 'notice', + }, + { + ruleId: '1_1_1_H2.EG5', + description: + 'Img element inside a link must not use alt text that duplicates the text content of the link.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H2'], + ruleType: 'error', + }, + { + ruleId: '1_1_1_H2.EG4', + description: + 'Img element inside a link has empty or missing alt text when a link beside it contains link text. Consider combining the links.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H2'], + ruleType: 'error', + }, + { + ruleId: '1_1_1_H2.EG3', + description: + 'Img element inside a link must not use alt text that duplicates the content of a text link beside it.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H2'], + ruleType: 'error', + }, + { + ruleId: '1_1_1_H2.EG4', + description: + 'Img element inside a link has empty or missing alt text when a link beside it contains link text. Consider combining the links.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H2'], + ruleType: 'error', + }, + { + ruleId: '1_1_1_H2.EG3', + description: + 'Img element inside a link must not use alt text that duplicates the content of a text link beside it.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H2'], + ruleType: 'error', + }, + { + ruleId: '1_1_1_H53,ARIA6', + description: + 'Object elements must contain a text alternative after all other alternatives are exhausted.', + helpUrl: [ + 'https://www.w3.org/TR/WCAG20-TECHS/H53', + 'https://www.w3.org/TR/WCAG20-TECHS/ARIA6', + ], + ruleType: 'error', + }, + { + ruleId: '1_1_1_G94,G92.Object,ARIA6', + description: + 'Check that short (and if appropriate, long) text alternatives are available for non-text content that serve the same purpose and present the same information.', + helpUrl: [ + 'https://www.w3.org/TR/WCAG20-TECHS/G94', + 'https://www.w3.org/TR/WCAG20-TECHS/G92', + 'https://www.w3.org/TR/WCAG20-TECHS/ARIA6', + ], + ruleType: 'notice', + }, + { + ruleId: '1_1_1_H35.3', + description: + "Applet elements must contain a text alternative in the element's body, for browsers without support for the applet element.", + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H35'], + ruleType: 'error', + }, + { + ruleId: '1_1_1_H35.2', + description: + 'Applet elements must contain an alt attribute, to provide a text alternative to browsers supporting the element but are unable to load the applet.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H35'], + ruleType: 'error', + }, + { + ruleId: '1_1_1_G94,G92.Applet', + description: + 'Check that short (and if appropriate, long) text alternatives are available for non-text content that serve the same purpose and present the same information.', + helpUrl: [ + 'https://www.w3.org/TR/WCAG20-TECHS/G94', + 'https://www.w3.org/TR/WCAG20-TECHS/G92', + ], + ruleType: 'notice', + }, + { + ruleId: '1_2_1_G158', + description: + 'If this embedded object contains pre-recorded audio only, and is not provided as an alternative for text content, check that an alternative text version is available.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/G158'], + ruleType: 'notice', + }, + { + ruleId: '1_2_1_G159,G166', + description: + 'If this embedded object contains pre-recorded video only, and is not provided as an alternative for text content, check that an alternative text version is available, or an audio track is provided that presents equivalent information.', + helpUrl: [ + 'https://www.w3.org/TR/WCAG20-TECHS/G159', + 'https://www.w3.org/TR/WCAG20-TECHS/G166', + ], + ruleType: 'notice', + }, + { + ruleId: '1_2_2_G87,G93', + description: + 'If this embedded object contains pre-recorded synchronised media and is not provided as an alternative for text content, check that captions are provided for audio content.', + helpUrl: [ + 'https://www.w3.org/TR/WCAG20-TECHS/G87', + 'https://www.w3.org/TR/WCAG20-TECHS/G93', + ], + ruleType: 'notice', + }, + { + ruleId: '1_2_3_G69,G78,G173,G8', + description: + 'If this embedded object contains pre-recorded synchronised media and is not provided as an alternative for text content, check that an audio description of its video, and/or an alternative text version of the content is provided.', + helpUrl: [ + 'https://www.w3.org/TR/WCAG20-TECHS/G69', + 'https://www.w3.org/TR/WCAG20-TECHS/G78', + 'https://www.w3.org/TR/WCAG20-TECHS/G173', + 'https://www.w3.org/TR/WCAG20-TECHS/G8', + ], + ruleType: 'notice', + }, + { + ruleId: '1_2_4_G9,G87,G93', + description: + 'If this embedded object contains synchronised media, check that captions are provided for live audio content.', + helpUrl: [ + 'https://www.w3.org/TR/WCAG20-TECHS/G9', + 'https://www.w3.org/TR/WCAG20-TECHS/G87', + 'https://www.w3.org/TR/WCAG20-TECHS/G93', + ], + ruleType: 'notice', + }, + { + ruleId: '1_2_5_G78,G173,G8', + description: + 'If this embedded object contains pre-recorded synchronised media, check that an audio description is provided for its video content.', + helpUrl: [ + 'https://www.w3.org/TR/WCAG20-TECHS/G78', + 'https://www.w3.org/TR/WCAG20-TECHS/G173', + 'https://www.w3.org/TR/WCAG20-TECHS/G8', + ], + ruleType: 'notice', + }, + { + ruleId: '1_2_6_G54,G81', + description: + 'If this embedded object contains pre-recorded synchronised media, check that a sign language interpretation is provided for its audio.', + helpUrl: [ + 'https://www.w3.org/TR/WCAG20-TECHS/G54', + 'https://www.w3.org/TR/WCAG20-TECHS/G81', + ], + ruleType: 'notice', + }, + { + ruleId: '1_2_7_G8', + description: + 'If this embedded object contains synchronised media, and where pauses in foreground audio is not sufficient to allow audio descriptions to convey the sense of pre-recorded video, check that an extended audio description is provided, either through scripting or an alternate version.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/G8'], + ruleType: 'notice', + }, + { + ruleId: '1_2_8_G69,G159', + description: + 'If this embedded object contains pre-recorded synchronised media or video-only content, check that an alternative text version of the content is provided.', + helpUrl: [ + 'https://www.w3.org/TR/WCAG20-TECHS/G69', + 'https://www.w3.org/TR/WCAG20-TECHS/G159', + ], + ruleType: 'notice', + }, + { + ruleId: '1_2_9_G150,G151,G157', + description: + 'If this embedded object contains live audio-only content, check that an alternative text version of the content is provided.', + helpUrl: [ + 'https://www.w3.org/TR/WCAG20-TECHS/G150', + 'https://www.w3.org/TR/WCAG20-TECHS/G151', + 'https://www.w3.org/TR/WCAG20-TECHS/G157', + ], + ruleType: 'notice', + }, + { + ruleId: '1_3_1_F92,ARIA4', + description: + 'This element\'s role is "presentation" but contains child elements with semantic meaning.', + helpUrl: [ + 'https://www.w3.org/TR/WCAG20-TECHS/F92', + 'https://www.w3.org/TR/WCAG20-TECHS/ARIA4', + ], + ruleType: 'error', + }, + { ruleId: 'code', description: 'msg', helpUrl: [], ruleType: 'level' }, + { + ruleId: '1_3_1_H44.NotFormControl', + description: + 'This label\'s "for" attribute contains an ID for an element that is not a form control. Ensure that you have entered the correct ID for the intended element.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H44'], + ruleType: 'warning', + }, + { + ruleId: '1_3_1_H65', + description: + 'This form control has a "title" attribute that is empty or contains only spaces. It will be ignored for labelling test purposes.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H65'], + ruleType: 'warning', + }, + { + ruleId: '1_3_1_ARIA6', + description: + 'This form control has an "aria-label" attribute that is empty or contains only spaces. It will be ignored for labelling test purposes.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/ARIA6'], + ruleType: 'warning', + }, + { + ruleId: '1_3_1_ARIA16,ARIA9', + description: + 'This form control contains an aria-labelledby attribute, however it includes an ID "{{id}}" that does not exist on an element. The aria-labelledby attribute will be ignored for labelling test purposes.', + helpUrl: [ + 'https://www.w3.org/TR/WCAG20-TECHS/ARIA16', + 'https://www.w3.org/TR/WCAG20-TECHS/ARIA9', + ], + ruleType: 'warning', + }, + { + ruleId: '1_3_1_F68.Hidden', + description: + 'This hidden form field is labelled in some way. There should be no need to label a hidden form field.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/F68'], + ruleType: 'warning', + }, + { + ruleId: '1_3_1_F68.HiddenAttr', + description: + 'This form field is intended to be hidden (using the "hidden" attribute), but is also labelled in some way. There should be no need to label a hidden form field.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/F68'], + ruleType: 'warning', + }, + { + ruleId: '1_3_1_F68', + description: + 'This form field should be labelled in some way. Use the label element (either with a "for" attribute or wrapped around the form field), or "title", "aria-label" or "aria-labelledby" attributes as appropriate.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/F68'], + ruleType: 'error', + }, + { ruleId: null, description: '', helpUrl: [], ruleType: 'error' }, + { + ruleId: 'H49.AlignAttr', + description: 'Align attributes .', + helpUrl: [], + ruleType: 'error', + }, + { ruleId: null, description: '', helpUrl: [], ruleType: 'warning' }, + { + ruleId: '1_3_1_H49.AlignAttr', + description: 'Align attributes.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H49'], + ruleType: 'warning', + }, + { + ruleId: '1_3_1_H42', + description: + 'Heading markup should be used if this content is intended as a heading.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H42'], + ruleType: 'warning', + }, + { + ruleId: '1_3_1_H63.3', + description: + 'Table cell has an invalid scope attribute. Valid values are row, col, rowgroup, or colgroup.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H63'], + ruleType: 'error', + }, + { + ruleId: '1_3_1_H63.2', + description: + 'Scope attributes on td elements that act as headings for other elements are obsolete in HTML5. Use a th element instead.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H63'], + ruleType: 'warning', + }, + { + ruleId: '1_3_1_H43.ScopeAmbiguous', + description: + 'Scope attributes on th elements are ambiguous in a table with multiple levels of headings. Use the headers attribute on td elements instead.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H43'], + ruleType: 'warning', + }, + { + ruleId: '1_3_1_H43.IncorrectAttr', + description: + 'Incorrect headers attribute on this td element. Expected "{{expected}}" but found "{{actual}}"', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H43'], + ruleType: 'notice', + }, + { + ruleId: '1_3_1_H43.IncorrectAttr', + description: + 'Incorrect headers attribute on this td element. Expected "{{expected}}" but found "{{actual}}"', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H43'], + ruleType: 'error', + }, + { + ruleId: '1_3_1_H43.HeadersRequired', + description: + 'The relationship between td elements and their associated th elements is not defined. As this table has multiple levels of th elements, you must use the headers attribute on td elements.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H43'], + ruleType: 'error', + }, + { + ruleId: '1_3_1_H43.MissingHeaderIds', + description: + "Not all th elements in this table contain an id attribute. These cells should contain ids so that they may be referenced by td elements' headers attributes.", + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H43'], + ruleType: 'error', + }, + { + ruleId: '1_3_1_H43.MissingHeadersAttrs', + description: + 'Not all td elements in this table contain a headers attribute. Each headers attribute should list the ids of all th elements associated with that cell.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H43'], + ruleType: 'error', + }, + { + ruleId: '1_3_1_H43,H63', + description: + 'The relationship between td elements and their associated th elements is not defined. Use either the scope attribute on th elements, or the headers attribute on td elements.', + helpUrl: [ + 'https://www.w3.org/TR/WCAG20-TECHS/H43', + 'https://www.w3.org/TR/WCAG20-TECHS/H63', + ], + ruleType: 'error', + }, + { + ruleId: '1_3_1_H43.MissingHeaderIds', + description: + "Not all th elements in this table contain an id attribute. These cells should contain ids so that they may be referenced by td elements' headers attributes.", + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H43'], + ruleType: 'error', + }, + { + ruleId: '1_3_1_H43.MissingHeadersAttrs', + description: + 'Not all td elements in this table contain a headers attribute. Each headers attribute should list the ids of all th elements associated with that cell.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H43'], + ruleType: 'error', + }, + { + ruleId: '1_3_1_H63.1', + description: + 'Not all th elements in this table have a scope attribute. These cells should contain a scope attribute to identify their association with td elements.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H63'], + ruleType: 'error', + }, + { + ruleId: '1_3_1_H43,H63', + description: + 'The relationship between td elements and their associated th elements is not defined. Use either the scope attribute on th elements, or the headers attribute on td elements.', + helpUrl: [ + 'https://www.w3.org/TR/WCAG20-TECHS/H43', + 'https://www.w3.org/TR/WCAG20-TECHS/H63', + ], + ruleType: 'error', + }, + { + ruleId: '1_3_1_H73.3.LayoutTable', + description: + 'This table appears to be used for layout, but contains a summary attribute. Layout tables must not contain summary attributes, or if supplied, must be empty.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H73'], + ruleType: 'error', + }, + { + ruleId: '1_3_1_H39,H73.4', + description: + 'If this table is a data table, and both a summary attribute and a caption element are present, the summary should not duplicate the caption.', + helpUrl: [ + 'https://www.w3.org/TR/WCAG20-TECHS/H39', + 'https://www.w3.org/TR/WCAG20-TECHS/H73', + ], + ruleType: 'error', + }, + { + ruleId: '1_3_1_H73.3.Check', + description: + "If this table is a data table, check that the summary attribute describes the table's organization or explains how to use the table.", + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H73'], + ruleType: 'notice', + }, + { + ruleId: '1_3_1_H73.3.NoSummary', + description: + 'If this table is a data table, consider using the summary attribute of the table element to give an overview of this table.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H73'], + ruleType: 'warning', + }, + { + ruleId: '1_3_1_H39.3.LayoutTable', + description: + 'This table appears to be used for layout, but contains a caption element. Layout tables must not contain captions.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H39'], + ruleType: 'error', + }, + { + ruleId: '1_3_1_H39.3.Check', + description: + 'If this table is a data table, check that the caption element accurately describes this table.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H39'], + ruleType: 'notice', + }, + { + ruleId: '1_3_1_H39.3.NoCaption', + description: + 'If this table is a data table, consider using a caption element to the table element to identify this table.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H39'], + ruleType: 'warning', + }, + { + ruleId: '1_3_1_H71.NoLegend', + description: + 'Fieldset does not contain a legend element. All fieldsets should contain a legend element that describes a description of the field group.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H71'], + ruleType: 'error', + }, + { + ruleId: '1_3_1_H85.2', + description: + 'If this selection list contains groups of related options, they should be grouped with optgroup.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H85'], + ruleType: 'warning', + }, + { + ruleId: '1_3_1_H71.SameName', + description: + 'If these radio buttons or check boxes require a further group-level description, they should be contained within a fieldset element.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H71'], + ruleType: 'warning', + }, + { + ruleId: '1_3_1_H48.1', + description: + 'This content looks like it is simulating an unordered list using plain text. If so, marking up this content with a ul element would add proper structure information to the document.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H48'], + ruleType: 'warning', + }, + { + ruleId: '1_3_1_H48.2', + description: + 'This content looks like it is simulating an ordered list using plain text. If so, marking up this content with an ol element would add proper structure information to the document.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H48'], + ruleType: 'warning', + }, + { + ruleId: 'G141', + description: '', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/G141'], + ruleType: 'error', + }, + { + ruleId: 'G141', + description: '', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/G141'], + ruleType: 'error', + }, + { + ruleId: '1_3_1_H42.2', + description: + 'Heading tag found with no content. Text that is not intended as a heading should not be marked up with heading tags.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H42'], + ruleType: 'error', + }, + { + ruleId: '1_3_1_H48', + description: + 'If this element contains a navigation section, it is recommended that it be marked up as a list.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H48'], + ruleType: 'warning', + }, + { + ruleId: '1_3_1_LayoutTable', + description: + 'This table appears to be a layout table. If it is meant to instead be a data table, ensure header cells are identified using th elements.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/LayoutTable'], + ruleType: 'notice', + }, + { + ruleId: '1_3_1_DataTable', + description: + 'This table appears to be a data table. If it is meant to instead be a layout table, ensure there are no th elements, and no summary or caption.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/DataTable'], + ruleType: 'notice', + }, + { + ruleId: '1_3_2_G57', + description: + 'Check that the content is ordered in a meaningful sequence when linearised, such as when style sheets are disabled.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/G57'], + ruleType: 'notice', + }, + { + ruleId: '1_3_3_G96', + description: + 'Where instructions are provided for understanding the content, do not rely on sensory characteristics alone (such as shape, size or location) to describe objects.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/G96'], + ruleType: 'notice', + }, + { ruleId: '', description: '', helpUrl: [], ruleType: 'notice' }, + { + ruleId: 'H98', + description: '', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H98'], + ruleType: 'warning', + }, + { + ruleId: 'H98', + description: '', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H98'], + ruleType: 'error', + }, + { + ruleId: 'H98', + description: '', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H98'], + ruleType: 'error', + }, + { + ruleId: 'H98', + description: '', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H98'], + ruleType: 'error', + }, + { + ruleId: 'H98', + description: '', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H98'], + ruleType: 'error', + }, + { + ruleId: 'H98', + description: '', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H98'], + ruleType: 'error', + }, + { + ruleId: 'H98', + description: '', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H98'], + ruleType: 'error', + }, + { + ruleId: 'H98', + description: '', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H98'], + ruleType: 'error', + }, + { + ruleId: 'H98', + description: '', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H98'], + ruleType: 'error', + }, + { + ruleId: 'H98', + description: '', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H98'], + ruleType: 'notice', + }, + { + ruleId: 'H98', + description: '', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H98'], + ruleType: 'notice', + }, + { + ruleId: 'ARIA11', + description: '', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/ARIA11'], + ruleType: 'notice', + }, + { + ruleId: 'G14,G182', + description: '', + helpUrl: [ + 'https://www.w3.org/TR/WCAG20-TECHS/G14', + 'https://www.w3.org/TR/WCAG20-TECHS/G182', + ], + ruleType: 'notice', + }, + { + ruleId: 'C32,C31,C33,C38,SCR34,G206', + description: '', + helpUrl: [ + 'https://www.w3.org/TR/WCAG20-TECHS/C32', + 'https://www.w3.org/TR/WCAG20-TECHS/C31', + 'https://www.w3.org/TR/WCAG20-TECHS/C33', + 'https://www.w3.org/TR/WCAG20-TECHS/C38', + 'https://www.w3.org/TR/WCAG20-TECHS/SCR34', + 'https://www.w3.org/TR/WCAG20-TECHS/G206', + ], + ruleType: 'notice', + }, + { + ruleId: 'C32,C31,C33,C38,SCR34,G206', + description: '', + helpUrl: [ + 'https://www.w3.org/TR/WCAG20-TECHS/C32', + 'https://www.w3.org/TR/WCAG20-TECHS/C31', + 'https://www.w3.org/TR/WCAG20-TECHS/C33', + 'https://www.w3.org/TR/WCAG20-TECHS/C38', + 'https://www.w3.org/TR/WCAG20-TECHS/SCR34', + 'https://www.w3.org/TR/WCAG20-TECHS/G206', + ], + ruleType: 'warning', + }, + { + ruleId: 'C32,C31,C33,C38,SCR34,G206', + description: '', + helpUrl: [ + 'https://www.w3.org/TR/WCAG20-TECHS/C32', + 'https://www.w3.org/TR/WCAG20-TECHS/C31', + 'https://www.w3.org/TR/WCAG20-TECHS/C33', + 'https://www.w3.org/TR/WCAG20-TECHS/C38', + 'https://www.w3.org/TR/WCAG20-TECHS/SCR34', + 'https://www.w3.org/TR/WCAG20-TECHS/G206', + ], + ruleType: 'warning', + }, + { + ruleId: 'C32,C31,C33,C38,SCR34,G206', + description: '', + helpUrl: [ + 'https://www.w3.org/TR/WCAG20-TECHS/C32', + 'https://www.w3.org/TR/WCAG20-TECHS/C31', + 'https://www.w3.org/TR/WCAG20-TECHS/C33', + 'https://www.w3.org/TR/WCAG20-TECHS/C38', + 'https://www.w3.org/TR/WCAG20-TECHS/SCR34', + 'https://www.w3.org/TR/WCAG20-TECHS/G206', + ], + ruleType: 'warning', + }, + { + ruleId: 'G195,G207,G18,G145,G174,F78', + description: '', + helpUrl: [ + 'https://www.w3.org/TR/WCAG20-TECHS/G195', + 'https://www.w3.org/TR/WCAG20-TECHS/G207', + 'https://www.w3.org/TR/WCAG20-TECHS/G18', + 'https://www.w3.org/TR/WCAG20-TECHS/G145', + 'https://www.w3.org/TR/WCAG20-TECHS/G174', + 'https://www.w3.org/TR/WCAG20-TECHS/F78', + ], + ruleType: 'notice', + }, + { + ruleId: 'C36,C35', + description: '', + helpUrl: [ + 'https://www.w3.org/TR/WCAG20-TECHS/C36', + 'https://www.w3.org/TR/WCAG20-TECHS/C35', + ], + ruleType: 'notice', + }, + { + ruleId: 'F95', + description: '', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/F95'], + ruleType: 'notice', + }, + { + ruleId: '1_4_2_F23', + description: + 'If this element contains audio that plays automatically for longer than 3 seconds, check that there is the ability to pause, stop or mute the audio.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/F23'], + ruleType: 'notice', + }, + { + ruleId: 'code', + description: '', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/code'], + ruleType: 'warning', + }, + { + ruleId: 'code', + description: '', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/code'], + ruleType: 'warning', + }, + { + ruleId: 'code', + description: '', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/code'], + ruleType: 'warning', + }, + { + ruleId: 'code', + description: '', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/code'], + ruleType: 'warning', + }, + { + ruleId: 'code', + description: '', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/code'], + ruleType: 'error', + }, + { + ruleId: 'F24.BGColour', + description: '', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/F24'], + ruleType: 'warning', + }, + { + ruleId: 'F24.FGColour', + description: '', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/F24'], + ruleType: 'warning', + }, + { + ruleId: '1_4_4_G142', + description: + 'Check that text can be resized without assistive technology up to 200 percent without loss of content or functionality.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/G142'], + ruleType: 'notice', + }, + { + ruleId: '1_4_5_G140,C22,C30.AALevel', + description: + "If the technologies being used can achieve the visual presentation, check that text is used to convey information rather than images of text, except when the image of text is essential to the information being conveyed, or can be visually customised to the user's requirements.", + helpUrl: [ + 'https://www.w3.org/TR/WCAG20-TECHS/G140', + 'https://www.w3.org/TR/WCAG20-TECHS/C22', + 'https://www.w3.org/TR/WCAG20-TECHS/C30', + ], + ruleType: 'notice', + }, + { + ruleId: 'code', + description: '', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/code'], + ruleType: 'warning', + }, + { + ruleId: 'code', + description: '', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/code'], + ruleType: 'warning', + }, + { + ruleId: 'code', + description: '', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/code'], + ruleType: 'warning', + }, + { + ruleId: 'code', + description: '', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/code'], + ruleType: 'error', + }, + { + ruleId: '1_4_7_G56', + description: + 'For pre-recorded audio-only content in this element that is primarily speech (such as narration), any background sounds should be muteable, or be at least 20 dB (or about 4 times) quieter than the speech.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/G56'], + ruleType: 'notice', + }, + { + ruleId: '1_4_8_G148,G156,G175', + description: + 'Check that a mechanism is available for the user to select foreground and background colours for blocks of text, either through the Web page or the browser.', + helpUrl: [ + 'https://www.w3.org/TR/WCAG20-TECHS/G148', + 'https://www.w3.org/TR/WCAG20-TECHS/G156', + 'https://www.w3.org/TR/WCAG20-TECHS/G175', + ], + ruleType: 'notice', + }, + { + ruleId: '1_4_8_H87,C20', + description: + 'Check that a mechanism exists to reduce the width of a block of text to no more than 80 characters (or 40 in Chinese, Japanese or Korean script).', + helpUrl: [ + 'https://www.w3.org/TR/WCAG20-TECHS/H87', + 'https://www.w3.org/TR/WCAG20-TECHS/C20', + ], + ruleType: 'notice', + }, + { + ruleId: '1_4_8_C19,G172,G169', + description: + 'Check that blocks of text are not fully justified - that is, to both left and right edges - or a mechanism exists to remove full justification.', + helpUrl: [ + 'https://www.w3.org/TR/WCAG20-TECHS/C19', + 'https://www.w3.org/TR/WCAG20-TECHS/G172', + 'https://www.w3.org/TR/WCAG20-TECHS/G169', + ], + ruleType: 'notice', + }, + { + ruleId: '1_4_8_G188,C21', + description: + 'Check that line spacing in blocks of text are at least 150% in paragraphs, and paragraph spacing is at least 1.5 times the line spacing, or that a mechanism is available to achieve this.', + helpUrl: [ + 'https://www.w3.org/TR/WCAG20-TECHS/G188', + 'https://www.w3.org/TR/WCAG20-TECHS/C21', + ], + ruleType: 'notice', + }, + { + ruleId: '1_4_8_H87,G146,C26', + description: + 'Check that text can be resized without assistive technology up to 200 percent without requiring the user to scroll horizontally on a full-screen window.', + helpUrl: [ + 'https://www.w3.org/TR/WCAG20-TECHS/H87', + 'https://www.w3.org/TR/WCAG20-TECHS/G146', + 'https://www.w3.org/TR/WCAG20-TECHS/C26', + ], + ruleType: 'notice', + }, + { + ruleId: '1_4_9_G140,C22,C30.NoException', + description: + 'Check that images of text are only used for pure decoration or where a particular presentation of text is essential to the information being conveyed.', + helpUrl: [ + 'https://www.w3.org/TR/WCAG20-TECHS/G140', + 'https://www.w3.org/TR/WCAG20-TECHS/C22', + 'https://www.w3.org/TR/WCAG20-TECHS/C30', + ], + ruleType: 'notice', + }, + { + ruleId: '2_1_1_G90', + description: + 'Ensure the functionality provided by an event handler for this element is available through the keyboard', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/G90'], + ruleType: 'warning', + }, + { + ruleId: '2_1_1_SCR20.DblClick', + description: + 'Ensure the functionality provided by double-clicking on this element is available through the keyboard.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/SCR20'], + ruleType: 'warning', + }, + { + ruleId: '2_1_1_SCR20.MouseOver', + description: + 'Ensure the functionality provided by mousing over this element is available through the keyboard; for instance, using the focus event.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/SCR20'], + ruleType: 'warning', + }, + { + ruleId: '2_1_1_SCR20.MouseOut', + description: + 'Ensure the functionality provided by mousing out of this element is available through the keyboard; for instance, using the blur event.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/SCR20'], + ruleType: 'warning', + }, + { + ruleId: '2_1_1_SCR20.MouseMove', + description: + 'Ensure the functionality provided by moving the mouse on this element is available through the keyboard.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/SCR20'], + ruleType: 'warning', + }, + { + ruleId: '2_1_1_SCR20.MouseDown', + description: + 'Ensure the functionality provided by mousing down on this element is available through the keyboard; for instance, using the keydown event.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/SCR20'], + ruleType: 'warning', + }, + { + ruleId: '2_1_1_SCR20.MouseUp', + description: + 'Ensure the functionality provided by mousing up on this element is available through the keyboard; for instance, using the keyup event.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/SCR20'], + ruleType: 'warning', + }, + { + ruleId: '2_1_2_F10', + description: + 'Check that this applet or plugin provides the ability to move the focus away from itself when using the keyboard.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/F10'], + ruleType: 'warning', + }, + { ruleId: '', description: '', helpUrl: [], ruleType: 'notice' }, + { + ruleId: '2_2_1_F40.2', + description: + 'Meta refresh tag used to redirect to another page, with a time limit that is not zero. Users cannot control this time limit.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/F40'], + ruleType: 'error', + }, + { + ruleId: '2_2_1_F41.2', + description: + 'Meta refresh tag used to refresh the current page. Users cannot control the time limit for this refresh.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/F41'], + ruleType: 'error', + }, + { + ruleId: '2_2_2_SCR33,SCR22,G187,G152,G186,G191', + description: + 'If any part of the content moves, scrolls or blinks for more than 5 seconds, or auto-updates, check that there is a mechanism available to pause, stop, or hide the content.', + helpUrl: [ + 'https://www.w3.org/TR/WCAG20-TECHS/SCR33', + 'https://www.w3.org/TR/WCAG20-TECHS/SCR22', + 'https://www.w3.org/TR/WCAG20-TECHS/G187', + 'https://www.w3.org/TR/WCAG20-TECHS/G152', + 'https://www.w3.org/TR/WCAG20-TECHS/G186', + 'https://www.w3.org/TR/WCAG20-TECHS/G191', + ], + ruleType: 'notice', + }, + { + ruleId: '2_2_2_F4', + description: + 'Ensure there is a mechanism available to stop this blinking element in less than five seconds.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/F4'], + ruleType: 'warning', + }, + { + ruleId: '2_2_2_F47', + description: + 'Blink elements cannot satisfy the requirement that blinking information can be stopped within five seconds.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/F47'], + ruleType: 'error', + }, + { + ruleId: '2_2_3_G5', + description: + 'Check that timing is not an essential part of the event or activity presented by the content, except for non-interactive synchronized media and real-time events.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/G5'], + ruleType: 'notice', + }, + { + ruleId: '2_2_4_SCR14', + description: + 'Check that all interruptions (including updates to content) can be postponed or suppressed by the user, except interruptions involving an emergency.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/SCR14'], + ruleType: 'notice', + }, + { + ruleId: '2_2_5_G105,G181', + description: + 'If this Web page is part of a set of Web pages with an inactivity time limit, check that an authenticated user can continue the activity without loss of data after re-authenticating.', + helpUrl: [ + 'https://www.w3.org/TR/WCAG20-TECHS/G105', + 'https://www.w3.org/TR/WCAG20-TECHS/G181', + ], + ruleType: 'notice', + }, + { ruleId: '', description: '', helpUrl: [], ruleType: 'notice' }, + { + ruleId: '2_3_1_G19,G176', + description: + 'Check that no component of the content flashes more than three times in any 1-second period, or that the size of any flashing area is sufficiently small.', + helpUrl: [ + 'https://www.w3.org/TR/WCAG20-TECHS/G19', + 'https://www.w3.org/TR/WCAG20-TECHS/G176', + ], + ruleType: 'notice', + }, + { + ruleId: '2_3_2_G19', + description: + 'Check that no component of the content flashes more than three times in any 1-second period.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/G19'], + ruleType: 'notice', + }, + { + ruleId: 'C39', + description: '', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/C39'], + ruleType: 'notice', + }, + { + ruleId: '2_4_1_H64.1', + description: + 'Iframe element requires a non-empty title attribute that identifies the frame.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H64'], + ruleType: 'error', + }, + { + ruleId: '2_4_1_H64.2', + description: + 'Check that the title attribute of this element contains text that identifies the frame.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H64'], + ruleType: 'notice', + }, + { + ruleId: '2_4_1_G1,G123,G124,H69', + description: + 'Ensure that any common navigation elements can be bypassed; for instance, by use of skip links, header elements, or ARIA landmark roles.', + helpUrl: [ + 'https://www.w3.org/TR/WCAG20-TECHS/G1', + 'https://www.w3.org/TR/WCAG20-TECHS/G123', + 'https://www.w3.org/TR/WCAG20-TECHS/G124', + 'https://www.w3.org/TR/WCAG20-TECHS/H69', + ], + ruleType: 'notice', + }, + { + ruleId: '2_4_1_G1,G123,G124.NoSuchID', + description: + 'This link points to a named anchor "{{id}}" within the document, but no anchor exists with that name.', + helpUrl: [ + 'https://www.w3.org/TR/WCAG20-TECHS/G1', + 'https://www.w3.org/TR/WCAG20-TECHS/G123', + 'https://www.w3.org/TR/WCAG20-TECHS/G124', + ], + ruleType: 'error', + }, + { + ruleId: '2_4_1_G1,G123,G124.NoSuchIDFragment', + description: + 'This link points to a named anchor "{{id}}" within the document, but no anchor exists with that name in the fragment tested.', + helpUrl: [ + 'https://www.w3.org/TR/WCAG20-TECHS/G1', + 'https://www.w3.org/TR/WCAG20-TECHS/G123', + 'https://www.w3.org/TR/WCAG20-TECHS/G124', + ], + ruleType: 'warning', + }, + { + ruleId: '2_4_2_H25.1.NoHeadEl', + description: + 'There is no head section in which to place a descriptive title element.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H25'], + ruleType: 'error', + }, + { + ruleId: '2_4_2_H25.1.NoTitleEl', + description: + 'A title should be provided for the document, using a non-empty title element in the head section.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H25'], + ruleType: 'error', + }, + { + ruleId: '2_4_2_H25.1.EmptyTitle', + description: 'The title element in the head section should be non-empty.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H25'], + ruleType: 'error', + }, + { + ruleId: '2_4_2_H25.2', + description: 'Check that the title element describes the document.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H25'], + ruleType: 'notice', + }, + { + ruleId: '2_4_3_H4.2', + description: + 'If tabindex is used, check that the tab order specified by the tabindex attributes follows relationships in the content.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H4'], + ruleType: 'notice', + }, + { + ruleId: '2_4_4_H77,H78,H79,H80,H81,H33', + description: + 'Check that the link text combined with programmatically determined link context, or its title attribute, identifies the purpose of the link.', + helpUrl: [ + 'https://www.w3.org/TR/WCAG20-TECHS/H77', + 'https://www.w3.org/TR/WCAG20-TECHS/H78', + 'https://www.w3.org/TR/WCAG20-TECHS/H79', + 'https://www.w3.org/TR/WCAG20-TECHS/H80', + 'https://www.w3.org/TR/WCAG20-TECHS/H81', + 'https://www.w3.org/TR/WCAG20-TECHS/H33', + ], + ruleType: 'notice', + }, + { + ruleId: '2_4_4_H77,H78,H79,H80,H81', + description: + 'Check that the link text combined with programmatically determined link context identifies the purpose of the link.', + helpUrl: [ + 'https://www.w3.org/TR/WCAG20-TECHS/H77', + 'https://www.w3.org/TR/WCAG20-TECHS/H78', + 'https://www.w3.org/TR/WCAG20-TECHS/H79', + 'https://www.w3.org/TR/WCAG20-TECHS/H80', + 'https://www.w3.org/TR/WCAG20-TECHS/H81', + ], + ruleType: 'notice', + }, + { + ruleId: '2_4_5_G125,G64,G63,G161,G126,G185', + description: + 'If this Web page is not part of a linear process, check that there is more than one way of locating this Web page within a set of Web pages.', + helpUrl: [ + 'https://www.w3.org/TR/WCAG20-TECHS/G125', + 'https://www.w3.org/TR/WCAG20-TECHS/G64', + 'https://www.w3.org/TR/WCAG20-TECHS/G63', + 'https://www.w3.org/TR/WCAG20-TECHS/G161', + 'https://www.w3.org/TR/WCAG20-TECHS/G126', + 'https://www.w3.org/TR/WCAG20-TECHS/G185', + ], + ruleType: 'notice', + }, + { + ruleId: '2_4_6_G130,G131', + description: 'Check that headings and labels describe topic or purpose.', + helpUrl: [ + 'https://www.w3.org/TR/WCAG20-TECHS/G130', + 'https://www.w3.org/TR/WCAG20-TECHS/G131', + ], + ruleType: 'notice', + }, + { + ruleId: '2_4_7_G149,G165,G195,C15,SCR31', + description: + 'Check that there is at least one mode of operation where the keyboard focus indicator can be visually located on user interface controls.', + helpUrl: [ + 'https://www.w3.org/TR/WCAG20-TECHS/G149', + 'https://www.w3.org/TR/WCAG20-TECHS/G165', + 'https://www.w3.org/TR/WCAG20-TECHS/G195', + 'https://www.w3.org/TR/WCAG20-TECHS/C15', + 'https://www.w3.org/TR/WCAG20-TECHS/SCR31', + ], + ruleType: 'notice', + }, + { + ruleId: '2_4_8_H59.1', + description: + 'Link elements can only be located in the head section of the document.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H59'], + ruleType: 'error', + }, + { + ruleId: '2_4_8_H59.2a', + description: + 'Link element is missing a non-empty rel attribute identifying the link type.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H59'], + ruleType: 'error', + }, + { + ruleId: '2_4_8_H59.2b', + description: + 'Link element is missing a non-empty href attribute pointing to the resource being linked.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H59'], + ruleType: 'error', + }, + { + ruleId: '2_4_9_H30', + description: + 'Check that text of the link describes the purpose of the link.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H30'], + ruleType: 'notice', + }, + { ruleId: '', description: '', helpUrl: [], ruleType: 'notice' }, + { ruleId: '', description: '', helpUrl: [], ruleType: 'notice' }, + { ruleId: '', description: '', helpUrl: [], ruleType: 'notice' }, + { ruleId: '', description: '', helpUrl: [], ruleType: 'notice' }, + { + ruleId: 'F96', + description: '', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/F96'], + ruleType: 'notice', + }, + { + ruleId: 'F96', + description: '', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/F96'], + ruleType: 'warning', + }, + { ruleId: '', description: '', helpUrl: [], ruleType: 'notice' }, + { ruleId: '', description: '', helpUrl: [], ruleType: 'warning' }, + { ruleId: '', description: '', helpUrl: [], ruleType: 'notice' }, + { ruleId: '', description: '', helpUrl: [], ruleType: 'notice' }, + { + ruleId: '3_1_1_H57.2', + description: + 'The html element should have a lang or xml:lang attribute which describes the language of the document.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H57'], + ruleType: 'error', + }, + { + ruleId: '3_1_1_H57.3.Lang', + description: + 'The language specified in the lang attribute of the document element does not appear to be well-formed.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H57'], + ruleType: 'error', + }, + { + ruleId: '3_1_1_H57.3.XmlLang', + description: + 'The language specified in the xml:lang attribute of the document element does not appear to be well-formed.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H57'], + ruleType: 'error', + }, + { + ruleId: '3_1_2_H58', + description: + 'Ensure that any change in language is marked using the lang and/or xml:lang attribute on an element, as appropriate.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H58'], + ruleType: 'notice', + }, + { + ruleId: '3_1_2_H58.1.Lang', + description: + 'The language specified in the lang attribute of this element does not appear to be well-formed.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H58'], + ruleType: 'error', + }, + { + ruleId: '3_1_2_H58.1.XmlLang', + description: + 'The language specified in the xml:lang attribute of this element does not appear to be well-formed.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H58'], + ruleType: 'error', + }, + { + ruleId: '3_1_3_H40,H54,H60,G62,G70', + description: + 'Check that there is a mechanism available for identifying specific definitions of words or phrases used in an unusual or restricted way, including idioms and jargon.', + helpUrl: [ + 'https://www.w3.org/TR/WCAG20-TECHS/H40', + 'https://www.w3.org/TR/WCAG20-TECHS/H54', + 'https://www.w3.org/TR/WCAG20-TECHS/H60', + 'https://www.w3.org/TR/WCAG20-TECHS/G62', + 'https://www.w3.org/TR/WCAG20-TECHS/G70', + ], + ruleType: 'notice', + }, + { + ruleId: '3_1_4_G102,G55,G62,H28,G97', + description: + 'Check that a mechanism for identifying the expanded form or meaning of abbreviations is available.', + helpUrl: [ + 'https://www.w3.org/TR/WCAG20-TECHS/G102', + 'https://www.w3.org/TR/WCAG20-TECHS/G55', + 'https://www.w3.org/TR/WCAG20-TECHS/G62', + 'https://www.w3.org/TR/WCAG20-TECHS/H28', + 'https://www.w3.org/TR/WCAG20-TECHS/G97', + ], + ruleType: 'notice', + }, + { + ruleId: '3_1_5_G86,G103,G79,G153,G160', + description: + 'Where the content requires reading ability more advanced than the lower secondary education level, supplemental content or an alternative version should be provided.', + helpUrl: [ + 'https://www.w3.org/TR/WCAG20-TECHS/G86', + 'https://www.w3.org/TR/WCAG20-TECHS/G103', + 'https://www.w3.org/TR/WCAG20-TECHS/G79', + 'https://www.w3.org/TR/WCAG20-TECHS/G153', + 'https://www.w3.org/TR/WCAG20-TECHS/G160', + ], + ruleType: 'notice', + }, + { + ruleId: '3_1_6_H62.1.HTML5', + description: + 'Ruby element does not contain an rt element containing pronunciation information for its body text.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H62'], + ruleType: 'error', + }, + { + ruleId: '3_1_6_H62.1.XHTML11', + description: + 'Ruby element does not contain an rt element containing pronunciation information for the text inside the rb element.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H62'], + ruleType: 'error', + }, + { + ruleId: '3_1_6_H62.2', + description: + 'Ruby element does not contain rp elements, which provide extra punctuation to browsers not supporting ruby text.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H62'], + ruleType: 'error', + }, + { + ruleId: '3_2_1_G107', + description: + 'Check that a change of context does not occur when this input field receives focus.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/G107'], + ruleType: 'notice', + }, + { + ruleId: '3_2_2_H32.2', + description: + 'This form does not contain a submit button, which creates issues for those who cannot submit the form using the keyboard. Submit buttons are INPUT elements with type attribute "submit" or "image", or BUTTON elements with type "submit" or omitted/invalid.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H32'], + ruleType: 'error', + }, + { + ruleId: '3_2_3_G61', + description: + 'Check that navigational mechanisms that are repeated on multiple Web pages occur in the same relative order each time they are repeated, unless a change is initiated by the user.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/G61'], + ruleType: 'notice', + }, + { + ruleId: '3_2_4_G197', + description: + 'Check that components that have the same functionality within this Web page are identified consistently in the set of Web pages to which it belongs.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/G197'], + ruleType: 'notice', + }, + { + ruleId: '3_2_5_H83.3', + description: + "Check that this link's link text contains information indicating that the link will open in a new window.", + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H83'], + ruleType: 'warning', + }, + { + ruleId: '3_3_1_G83,G84,G85', + description: + 'If an input error is automatically detected in this form, check that the item(s) in error are identified and the error(s) are described to the user in text.', + helpUrl: [ + 'https://www.w3.org/TR/WCAG20-TECHS/G83', + 'https://www.w3.org/TR/WCAG20-TECHS/G84', + 'https://www.w3.org/TR/WCAG20-TECHS/G85', + ], + ruleType: 'notice', + }, + { + ruleId: '3_3_2_G131,G89,G184,H90', + description: + 'Check that descriptive labels or instructions (including for required fields) are provided for user input in this form.', + helpUrl: [ + 'https://www.w3.org/TR/WCAG20-TECHS/G131', + 'https://www.w3.org/TR/WCAG20-TECHS/G89', + 'https://www.w3.org/TR/WCAG20-TECHS/G184', + 'https://www.w3.org/TR/WCAG20-TECHS/H90', + ], + ruleType: 'notice', + }, + { + ruleId: '3_3_3_G177', + description: + 'Check that this form provides suggested corrections to errors in user input, unless it would jeopardize the security or purpose of the content.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/G177'], + ruleType: 'notice', + }, + { + ruleId: '3_3_4_G98,G99,G155,G164,G168.LegalForms', + description: + 'If this form would bind a user to a financial or legal commitment, modify/delete user-controllable data, or submit test responses, ensure that submissions are either reversible, checked for input errors, and/or confirmed by the user.', + helpUrl: [ + 'https://www.w3.org/TR/WCAG20-TECHS/G98', + 'https://www.w3.org/TR/WCAG20-TECHS/G99', + 'https://www.w3.org/TR/WCAG20-TECHS/G155', + 'https://www.w3.org/TR/WCAG20-TECHS/G164', + 'https://www.w3.org/TR/WCAG20-TECHS/G168', + ], + ruleType: 'notice', + }, + { + ruleId: '3_3_5_G71,G184,G193', + description: + 'Check that context-sensitive help is available for this form, at a Web-page and/or control level.', + helpUrl: [ + 'https://www.w3.org/TR/WCAG20-TECHS/G71', + 'https://www.w3.org/TR/WCAG20-TECHS/G184', + 'https://www.w3.org/TR/WCAG20-TECHS/G193', + ], + ruleType: 'notice', + }, + { + ruleId: '3_3_6_G98,G99,G155,G164,G168.AllForms', + description: + 'Check that submissions to this form are either reversible, checked for input errors, and/or confirmed by the user.', + helpUrl: [ + 'https://www.w3.org/TR/WCAG20-TECHS/G98', + 'https://www.w3.org/TR/WCAG20-TECHS/G99', + 'https://www.w3.org/TR/WCAG20-TECHS/G155', + 'https://www.w3.org/TR/WCAG20-TECHS/G164', + 'https://www.w3.org/TR/WCAG20-TECHS/G168', + ], + ruleType: 'notice', + }, + { + ruleId: 'F77', + description: '', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/F77'], + ruleType: 'error', + }, + { ruleId: null, description: 'msg', helpUrl: [], ruleType: 'error' }, + { ruleId: null, description: 'msg', helpUrl: [], ruleType: 'warning' }, + { + ruleId: '4_1_2_H91.A.Empty', + description: + 'Anchor element found with an ID but without a href or link text. Consider moving its ID to a parent or nearby element.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H91'], + ruleType: 'warning', + }, + { + ruleId: '4_1_2_H91.A.EmptyWithName', + description: + 'Anchor element found with a name attribute but without a href or link text. Consider moving the name attribute to become an ID of a parent or nearby element.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H91'], + ruleType: 'warning', + }, + { + ruleId: '4_1_2_H91.A.EmptyNoId', + description: + 'Anchor element found with no link content and no name and/or ID attribute.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H91'], + ruleType: 'error', + }, + { + ruleId: '4_1_2_H91.A.NoHref', + description: + 'Anchor elements should not be used for defining in-page link targets. If not using the ID for other purposes (such as CSS or scripting), consider moving it to a parent element.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H91'], + ruleType: 'warning', + }, + { + ruleId: '4_1_2_H91.A.Placeholder', + description: + 'Anchor element found with link content, but no href, ID or name attribute has been supplied.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H91'], + ruleType: 'warning', + }, + { + ruleId: '4_1_2_H91.A.NoContent', + description: + 'Anchor element found with a valid href attribute, but no link content has been supplied.', + helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H91'], + ruleType: 'error', + }, + { ruleId: '', description: '', helpUrl: [], ruleType: 'notice' }, ] diff --git a/kayle/package.json b/kayle/package.json index d1d581d..5ed50ba 100644 --- a/kayle/package.json +++ b/kayle/package.json @@ -1,6 +1,6 @@ { "name": "kayle", - "version": "0.8.27", + "version": "0.8.28", "description": "Extremely fast and accurate accessibility engine built for any headless tool like playwright or puppeteer.", "main": "./build/index.js", "keywords": [ @@ -22,12 +22,12 @@ "scripts": { "prepare": "tsc", "build": "tsc && yarn swc:dist", - "prepack": "yarn build:rules && yarn build", + "prepack": "yarn build && yarn build:rules", "compile:test": "yarn build && tsc --project tsconfig.test.json", - "compile:extension": "tsc build-extension.ts", - "compile:rules": "tsc build-rules.ts", - "build:extension": "yarn compile:extension && node build-extension.js", - "build:rules": "yarn compile:rules && node build-rules.js", + "compile:extension": "tsc builder/build-extension.ts", + "compile:rules": "tsc builder/*.ts", + "build:extension": "yarn compile:extension && node builder/build-extension.js", + "build:rules": "yarn compile:rules && node builder/build-htmlcs-params.js && node builder/build-rules.js && yarn build", "lint": "eslint .", "fix": "prettier --write '**/*.{js,jsx,ts,tsx, json}'", "swc:dist": "npx swc --copy-files --config-file .swcrc ./build -d ./build", @@ -57,6 +57,7 @@ "test:puppeteer:kayle": "npm run compile:test && node _tests/tests/basic-kayle.js", "test:puppeteer:innate": "npm run compile:test && node _tests/tests/innate.js", "test:htmlcs:extend": "npm run compile:test && node _tests/tests/extend-runner.js", + "test:ignore": "npm run compile:test && node _tests/tests/ignore-rules.js", "test:full": "npm run compile:test && node _tests/tests/full.js", "test:lint": "node build/lint.js", "test:unit:unique-selector": "npm run compile:test && node _tests/tests/unit/unique-selector.js", @@ -81,6 +82,8 @@ "@swc/helpers": "^0.5.1", "@types/jsdom": "^20.0.1", "@types/node": "^18.11.9", + "acorn": "^8.11.3", + "acorn-walk": "^8.3.2", "prettier": "^3.2.5", "puppeteer": "^21.2.1", "typescript": "^4.9.3" diff --git a/kayle/tests/ignore-rules.ts b/kayle/tests/ignore-rules.ts new file mode 100644 index 0000000..8301e2f --- /dev/null +++ b/kayle/tests/ignore-rules.ts @@ -0,0 +1,39 @@ +import assert from "assert"; +import puppeteer from "puppeteer"; +import { Standard, kayle } from "kayle"; +import { drakeMock } from "./mocks/html-mock"; +import { performance } from "perf_hooks"; + +(async () => { + const browser = await puppeteer.launch({ headless: "new" }); + const page = await browser.newPage(); + if (process.env.LOG_ENABLED) { + page.on("console", (msg) => console.log("PAGE LOG:", msg.text())); + } + const startTime = performance.now(); + const { issues, pageUrl, documentTitle, meta, automateable } = await kayle({ + page, + browser, + runners: ["htmlcs"], + includeWarnings: true, + html: drakeMock, + standard: Standard.WCAG2AA, + origin: "https://www.drake.com", // origin is the fake url in place of the raw content + }); + const nextTime = performance.now() - startTime; + + console.log(meta); + console.log(automateable); + console.log("time took", nextTime); + + // valid list + assert(Array.isArray(issues)); + assert(meta.errorCount <= 0); + assert(meta.warningCount === 0); + assert(meta.accessScore <= 100); + + assert(typeof pageUrl === "string"); + assert(typeof documentTitle === "string"); + + await browser.close(); +})(); diff --git a/yarn.lock b/yarn.lock index f2bab22..4eb218f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2070,6 +2070,42 @@ __metadata: languageName: node linkType: hard +"@typescript-eslint/types@npm:7.1.1": + version: 7.1.1 + resolution: "@typescript-eslint/types@npm:7.1.1" + checksum: e0fab31cb850a4923e0fca0663497b442a63fecfd1a293f70ecb4145b9f7cfbebb4d0ba29be76d70b95c153e51fc66e0400cd565d7552766783338878955680a + languageName: node + linkType: hard + +"@typescript-eslint/typescript-estree@npm:^7.1.1": + version: 7.1.1 + resolution: "@typescript-eslint/typescript-estree@npm:7.1.1" + dependencies: + "@typescript-eslint/types": "npm:7.1.1" + "@typescript-eslint/visitor-keys": "npm:7.1.1" + debug: "npm:^4.3.4" + globby: "npm:^11.1.0" + is-glob: "npm:^4.0.3" + minimatch: "npm:9.0.3" + semver: "npm:^7.5.4" + ts-api-utils: "npm:^1.0.1" + peerDependenciesMeta: + typescript: + optional: true + checksum: 6840f31ffe44072f0e20eb4acc091161eeac265fed44937d33064880269650ea63d68e8d79759f2dfaeff9a5803dcdf30e15a8b27e7db6cffbed42a02f9851e5 + languageName: node + linkType: hard + +"@typescript-eslint/visitor-keys@npm:7.1.1": + version: 7.1.1 + resolution: "@typescript-eslint/visitor-keys@npm:7.1.1" + dependencies: + "@typescript-eslint/types": "npm:7.1.1" + eslint-visitor-keys: "npm:^3.4.1" + checksum: d0c6c0811f38186053679b8447469e9a5c040db639d59e710ce5c5f5fddf9554287eb01a7cfa7a31e06f274bbe261c3b89a51a8c42869b1157b2d90c08f79507 + languageName: node + linkType: hard + "JSONStream@npm:^1.0.4": version: 1.3.5 resolution: "JSONStream@npm:1.3.5" @@ -2098,6 +2134,13 @@ __metadata: languageName: node linkType: hard +"acorn-walk@npm:^8.3.2": + version: 8.3.2 + resolution: "acorn-walk@npm:8.3.2" + checksum: 57dbe2fd8cf744f562431775741c5c087196cd7a65ce4ccb3f3981cdfad25cd24ad2bad404997b88464ac01e789a0a61e5e355b2a84876f13deef39fb39686ca + languageName: node + linkType: hard + "acorn@npm:^6.0.7": version: 6.4.2 resolution: "acorn@npm:6.4.2" @@ -2107,6 +2150,15 @@ __metadata: languageName: node linkType: hard +"acorn@npm:^8.11.3": + version: 8.11.3 + resolution: "acorn@npm:8.11.3" + bin: + acorn: bin/acorn + checksum: b688e7e3c64d9bfb17b596e1b35e4da9d50553713b3b3630cf5690f2b023a84eac90c56851e6912b483fe60e8b4ea28b254c07e92f17ef83d72d78745a8352dd + languageName: node + linkType: hard + "acorn@npm:^8.9.0": version: 8.10.0 resolution: "acorn@npm:8.10.0" @@ -4199,6 +4251,19 @@ __metadata: languageName: node linkType: hard +"fast-glob@npm:^3.2.9": + version: 3.3.2 + resolution: "fast-glob@npm:3.3.2" + dependencies: + "@nodelib/fs.stat": "npm:^2.0.2" + "@nodelib/fs.walk": "npm:^1.2.3" + glob-parent: "npm:^5.1.2" + merge2: "npm:^1.3.0" + micromatch: "npm:^4.0.4" + checksum: 222512e9315a0efca1276af9adb2127f02105d7288fa746145bf45e2716383fb79eb983c89601a72a399a56b7c18d38ce70457c5466218c5f13fad957cee16df + languageName: node + linkType: hard + "fast-json-stable-stringify@npm:^2.0.0": version: 2.1.0 resolution: "fast-json-stable-stringify@npm:2.1.0" @@ -4908,6 +4973,20 @@ __metadata: languageName: node linkType: hard +"globby@npm:^11.1.0": + version: 11.1.0 + resolution: "globby@npm:11.1.0" + dependencies: + array-union: "npm:^2.1.0" + dir-glob: "npm:^3.0.1" + fast-glob: "npm:^3.2.9" + ignore: "npm:^5.2.0" + merge2: "npm:^1.4.1" + slash: "npm:^3.0.0" + checksum: 288e95e310227bbe037076ea81b7c2598ccbc3122d87abc6dab39e1eec309aa14f0e366a98cdc45237ffcfcbad3db597778c0068217dcb1950fef6249104e1b1 + languageName: node + linkType: hard + "globby@npm:^13.1.4": version: 13.2.2 resolution: "globby@npm:13.2.2" @@ -5884,6 +5963,9 @@ __metadata: "@swc/helpers": "npm:^0.5.1" "@types/jsdom": "npm:^20.0.1" "@types/node": "npm:^18.11.9" + "@typescript-eslint/typescript-estree": "npm:^7.1.1" + acorn: "npm:^8.11.3" + acorn-walk: "npm:^8.3.2" fast_axecore: "workspace:*" fast_htmlcs: "workspace:*" kayle_innate: "workspace:*" @@ -6347,6 +6429,15 @@ __metadata: languageName: node linkType: hard +"minimatch@npm:9.0.3, minimatch@npm:^9.0.1": + version: 9.0.3 + resolution: "minimatch@npm:9.0.3" + dependencies: + brace-expansion: "npm:^2.0.1" + checksum: c81b47d28153e77521877649f4bab48348d10938df9e8147a58111fe00ef89559a2938de9f6632910c4f7bf7bb5cd81191a546167e58d357f0cfb1e18cecc1c5 + languageName: node + linkType: hard + "minimatch@npm:^3.0.4, minimatch@npm:^3.0.5, minimatch@npm:^3.1.1, minimatch@npm:^3.1.2": version: 3.1.2 resolution: "minimatch@npm:3.1.2" @@ -6356,15 +6447,6 @@ __metadata: languageName: node linkType: hard -"minimatch@npm:^9.0.1": - version: 9.0.3 - resolution: "minimatch@npm:9.0.3" - dependencies: - brace-expansion: "npm:^2.0.1" - checksum: c81b47d28153e77521877649f4bab48348d10938df9e8147a58111fe00ef89559a2938de9f6632910c4f7bf7bb5cd81191a546167e58d357f0cfb1e18cecc1c5 - languageName: node - linkType: hard - "minimatch@npm:~3.0.2, minimatch@npm:~3.0.4": version: 3.0.8 resolution: "minimatch@npm:3.0.8" @@ -7939,6 +8021,17 @@ __metadata: languageName: node linkType: hard +"semver@npm:^7.5.4": + version: 7.6.0 + resolution: "semver@npm:7.6.0" + dependencies: + lru-cache: "npm:^6.0.0" + bin: + semver: bin/semver.js + checksum: 1b41018df2d8aca5a1db4729985e8e20428c650daea60fcd16e926e9383217d00f574fab92d79612771884a98d2ee2a1973f49d630829a8d54d6570defe62535 + languageName: node + linkType: hard + "serialize-javascript@npm:6.0.0": version: 6.0.0 resolution: "serialize-javascript@npm:6.0.0" @@ -8033,7 +8126,7 @@ __metadata: languageName: node linkType: hard -"slash@npm:3.0.0": +"slash@npm:3.0.0, slash@npm:^3.0.0": version: 3.0.0 resolution: "slash@npm:3.0.0" checksum: 94a93fff615f25a999ad4b83c9d5e257a7280c90a32a7cb8b4a87996e4babf322e469c42b7f649fd5796edd8687652f3fb452a86dc97a816f01113183393f11c @@ -8644,6 +8737,15 @@ __metadata: languageName: node linkType: hard +"ts-api-utils@npm:^1.0.1": + version: 1.2.1 + resolution: "ts-api-utils@npm:1.2.1" + peerDependencies: + typescript: ">=4.2.0" + checksum: 6d7f60fd01e3885bb334607f22b9cb1002e72da81dad2e672fef1b0d1a2f640b0f0ff5310369401488fac90c7a7f5d39c89fd18789af59c672c9b5aef4cade3e + languageName: node + linkType: hard + "tslib@npm:^1.9.0": version: 1.14.1 resolution: "tslib@npm:1.14.1"