From 4f1e2ca32ca493168d381afaec2b68e69e21925d Mon Sep 17 00:00:00 2001 From: j-mendez Date: Sat, 9 Mar 2024 11:19:20 -0500 Subject: [PATCH] chore(rules): fix htmlcs rules map --- kayle/builder/build-htmlcs-params.ts | 19 +- kayle/builder/build-rules.ts | 2 +- kayle/builder/htmlcs-rule-map.ts | 22 +- kayle/lib/rules/htmlcs-rules.ts | 888 ++++++++++----------------- kayle/package.json | 3 +- yarn.lock | 105 +--- 6 files changed, 362 insertions(+), 677 deletions(-) diff --git a/kayle/builder/build-htmlcs-params.ts b/kayle/builder/build-htmlcs-params.ts index b8224e6..2d0a2fa 100644 --- a/kayle/builder/build-htmlcs-params.ts +++ b/kayle/builder/build-htmlcs-params.ts @@ -2,6 +2,7 @@ import { lstatSync, readdirSync, readFileSync } from "fs"; import { join, parse as pathParse } from "path"; import { parse } from "acorn"; import { simple } from "acorn-walk"; +import { generate } from "escodegen"; import type { ParamList } from "./build-types"; const paramList: ParamList[] = []; @@ -30,18 +31,34 @@ const processFile = (filePath) => { // @ts-ignore node.callee.property.name === "addMessage" ) { - const params = node.arguments.map((arg) => { + const params = node.arguments.map((arg, index) => { 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(); } + if ( + index === 2 && + arg.type === "CallExpression" && + // @ts-ignore + arg.callee?.object?.object?.name === "_global" && + // @ts-ignore + arg.callee?.object?.property?.name === "HTMLCS" && + // @ts-ignore + arg.callee?.property?.name === "getTranslation" + ) { + if (arg.arguments.length) { + return generate(arg).replace("_global.", ""); + } + } + return null; }); diff --git a/kayle/builder/build-rules.ts b/kayle/builder/build-rules.ts index 7741b56..f6a4a3e 100644 --- a/kayle/builder/build-rules.ts +++ b/kayle/builder/build-rules.ts @@ -67,7 +67,7 @@ import type { Rule } from "./build-types"; Buffer.from( await format( `/* ${DNE} */\nexport const htmlcsRules = ${JSON.stringify( - fast_htmlcs_rules, + fast_htmlcs_rules.filter((r) => r.description), )};`, pConfig, ), diff --git a/kayle/builder/htmlcs-rule-map.ts b/kayle/builder/htmlcs-rule-map.ts index c56e511..3fe4f09 100644 --- a/kayle/builder/htmlcs-rule-map.ts +++ b/kayle/builder/htmlcs-rule-map.ts @@ -23,19 +23,31 @@ export const htmlcsRuleMap = (rule: ParamList) => { ]; // TODO: PATCH RULES FROM INLINE TRANSLATIONS + const inlineTranslation = + rule[2] && rule[2].startsWith("HTMLCS.getTranslation"); const description = + (inlineTranslation && eval(rule[2])) || rule[2] || window.HTMLCS.getTranslation(`${rule[4]}_${rule[3]}`) || window.HTMLCS.getTranslation(`${rule[4]}${rule[3]}`) || ""; + const baseRule = `${rule[4]}${directRuleAssignments.includes(rule[3]) ? "." : "_"}${rule[3]}`; + const baseRuleId = + section508 || !description ? rule[3] || baseRule : baseRule; + + const inlineRule = inlineTranslation + ? rule[2].replace("HTMLCS.getTranslation(", "").replace(")", "") + : ""; + + const ruleId = inlineTranslation + ? inlineRule.substring(1, inlineRule.length - 1) + : baseRuleId; + return { - ruleId: - section508 || !description - ? rule[3] - : `${rule[4]}${directRuleAssignments.includes(rule[3]) ? "." : "_"}${rule[3]}`, - description: description, + ruleId, + description, helpUrl: section508 ? [] : helpLinks.map((r) => concatWcagLink(r.split(".")[0])), diff --git a/kayle/lib/rules/htmlcs-rules.ts b/kayle/lib/rules/htmlcs-rules.ts index eab789e..6bfbd4f 100644 --- a/kayle/lib/rules/htmlcs-rules.ts +++ b/kayle/lib/rules/htmlcs-rules.ts @@ -140,12 +140,6 @@ export const htmlcsRules = [ helpUrl: [], ruleType: 'notice', }, - { - ruleId: 'HeadingOrder', - description: '', - helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/HeadingOrder'], - ruleType: 'error', - }, { ruleId: 'TableHeaders', description: @@ -153,12 +147,6 @@ export const htmlcsRules = [ helpUrl: [], ruleType: 'notice', }, - { - ruleId: 'IncorrectHeadersAttr', - description: '', - helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/IncorrectHeadersAttr'], - ruleType: 'error', - }, { ruleId: 'MissingHeadersAttrs', description: @@ -180,12 +168,6 @@ export const htmlcsRules = [ helpUrl: [], ruleType: 'error', }, - { - ruleId: 'Frames', - description: '', - helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/Frames'], - ruleType: 'error', - }, { ruleId: 'Flicker', description: @@ -298,18 +280,6 @@ export const htmlcsRules = [ 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: @@ -335,262 +305,217 @@ export const htmlcsRules = [ 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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', - ], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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', - ], + helpUrl: [], 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', - ], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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', - ], + helpUrl: [], 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'], + helpUrl: [], 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', - ], + helpUrl: [], 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', - ], + helpUrl: [], 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', - ], + helpUrl: [], 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', - ], + helpUrl: [], 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', - ], + helpUrl: [], 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', - ], + helpUrl: [], 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'], + helpUrl: [], 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', - ], + helpUrl: [], 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', - ], + helpUrl: [], 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', - ], + helpUrl: [], ruleType: 'error', }, { ruleId: 'code', description: 'msg', helpUrl: [], ruleType: 'level' }, @@ -598,21 +523,21 @@ export const htmlcsRules = [ 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], ruleType: 'warning', }, { @@ -629,70 +554,82 @@ export const htmlcsRules = [ 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], + ruleType: 'error', + }, + { + ruleId: '1_3_1_H49.', + description: + 'Presentational markup used that has become obsolete in HTML5.', + helpUrl: [], 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'], + ruleId: '1_3_1_H49.Semantic', + description: + 'Semantic markup should be used to mark emphasised or special text so that it can be programmatically determined.', + helpUrl: [], + ruleType: 'warning', + }, + { + ruleId: '1_3_1_H49.AlignAttr.Semantic', + description: + 'Semantic markup should be used to mark emphasised or special text so that it can be programmatically determined.', + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + ruleId: '1_3_1_H43.IncorrectAttrNotice', + description: 'Check that headers attribute on td elements are correct.', + helpUrl: [], ruleType: 'notice', }, { @@ -706,700 +643,518 @@ export const htmlcsRules = [ 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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', - ], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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', - ], + helpUrl: [], 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'], + helpUrl: [], 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', - ], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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: '1_3_4.RestrictView', + description: + 'Check that content does not restrict its view and operation to a single display orientation, such as portrait or landscape, unless a specific display orientation is essential.', + helpUrl: [], + ruleType: 'notice', }, { - ruleId: 'H98', - description: '', - helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H98'], + ruleId: '1_3_5_H98.Purpose', + description: + 'Check that the input field serves a purpose identified in the Input Purposes for User Interface Components section; and that the content is implemented using technologies with support for identifying the expected meaning for form input data.', + helpUrl: [], ruleType: 'notice', }, { - ruleId: 'H98', - description: '', - helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/H98'], + ruleId: '1_3_5_H98.MissingAutocomplete', + description: + 'This element does not have an autocomplete attribute. If this field collects information about the user, consider adding one to comply with this Success Criterion.', + helpUrl: [], ruleType: 'notice', }, { - ruleId: 'ARIA11', - description: '', - helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/ARIA11'], + ruleId: '1_3_6_ARIA11.Check', + description: + 'Check that the purpose of User Interface Components, icons, and regions can be programmatically determined.', + helpUrl: [], ruleType: 'notice', }, { - ruleId: 'G14,G182', - description: '', - helpUrl: [ - 'https://www.w3.org/TR/WCAG20-TECHS/G14', - 'https://www.w3.org/TR/WCAG20-TECHS/G182', - ], + ruleId: '1_4_1_G14,G18', + description: + 'Check that any information conveyed using colour alone is also available in text, or through other visual cues.', + helpUrl: [], 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', - ], + ruleId: '1_4_10_C32,C31,C33,C38,SCR34,G206.Check', + description: + 'Check that content can be presented without loss of information or functionality, and without requiring scrolling in two dimensions for: Vertical scrolling content at a width equivalent to 320 CSS pixels; Horizontal scrolling content at a height equivalent to 256 CSS pixels; Except for parts of the content which require two-dimensional layout for usage or meaning.', + helpUrl: [], 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', - ], + ruleId: '1_4_10_C32,C31,C33,C38,SCR34,G206.Fixed', + description: + 'This element has "position: fixed". This may require scrolling in two dimensions, which is considered a failure of this Success Criterion.', + helpUrl: [], 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', - ], + ruleId: '1_4_10_C32,C31,C33,C38,SCR34,G206.Scrolling', + description: + 'Preformatted text may require scrolling in two dimensions, which is considered a failure of this Success Criterion.', + helpUrl: [], 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', - ], + ruleId: '1_4_10_C32,C31,C33,C38,SCR34,G206.Zoom', + description: + "Interfering with a user agent's ability to zoom may be a failure of this Success Criterion.", + helpUrl: [], 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', - ], + ruleId: '1_4_11_G195,G207,G18,G145,G174,F78.Check', + description: + 'Check that the visual presentation of the following have a contrast ratio of at least 3:1 against adjacent color(s): User Interface Components: Visual information required to identify user interface components and states, except for inactive components or where the appearance of the component is determined by the user agent and not modified by the author; Graphical Objects: Parts of graphics required to understand the content, except when a particular presentation of graphics is essential to the information being conveyed.', + helpUrl: [], ruleType: 'notice', }, { - ruleId: 'C36,C35', - description: '', - helpUrl: [ - 'https://www.w3.org/TR/WCAG20-TECHS/C36', - 'https://www.w3.org/TR/WCAG20-TECHS/C35', - ], + ruleId: '1_4_12_C36,C35.Check', + description: + 'Check that no loss of content or functionality occurs by setting all of the following and by changing no other style property: Line height (line spacing) to at least 1.5 times the font size; Spacing following paragraphs to at least 2 times the font size; Letter spacing (tracking) to at least 0.12 times the font size; Word spacing to at least 0.16 times the font size.', + helpUrl: [], ruleType: 'notice', }, { - ruleId: 'F95', - description: '', - helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/F95'], + ruleId: '1_4_13_F95.Check', + description: + 'Check that where receiving and then removing pointer hover or keyboard focus triggers additional content to become visible and then hidden, the following are true: Dismissable: A mechanism is available to dismiss the additional content without moving pointer hover or keyboard focus, unless the additional content communicates an input error or does not obscure or replace other content; Hoverable: If pointer hover can trigger the additional content, then the pointer can be moved over the additional content without the additional content disappearing; Persistent: The additional content remains visible until the hover or focus trigger is removed, the user dismisses it, or its information is no longer valid.', + helpUrl: [], 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'], + helpUrl: [], 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'], + ruleId: '1_4_3_F24.BGColour', + description: + 'Check that this element has an inherited foreground colour to complement the corresponding inline background colour or image.', + helpUrl: [], ruleType: 'warning', }, { - ruleId: 'F24.FGColour', - description: '', - helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/F24'], + ruleId: '1_4_3_F24.FGColour', + description: + 'Check that this element has an inherited background colour or image to complement the corresponding inline foreground colour.', + helpUrl: [], 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'], + helpUrl: [], 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', - ], + helpUrl: [], 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'], + helpUrl: [], 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', - ], + helpUrl: [], 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', - ], + helpUrl: [], 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', - ], + helpUrl: [], 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', - ], + helpUrl: [], 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', - ], + helpUrl: [], 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', - ], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], ruleType: 'warning', }, - { ruleId: '', description: '', helpUrl: [], ruleType: 'notice' }, + { + ruleId: '2_1_4.Check', + description: + 'Check that if a keyboard shortcut is implemented in content using only letter (including upper- and lower-case letters), punctuation, number, or symbol characters, then at least one of the following is true: Turn off: A mechanism is available to turn the shortcut off; Remap: A mechanism is available to remap the shortcut to use one or more non-printable keyboard characters (e.g. Ctrl, Alt, etc); Active only on focus: The keyboard shortcut for a user interface component is only active when that component has focus. ', + 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'], + helpUrl: [], 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'], + helpUrl: [], 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', - ], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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', - ], + helpUrl: [], + ruleType: 'notice', + }, + { + ruleId: '2_2_6.Check', + description: + 'Check that users are warned of the duration of any user inactivity that could cause data loss, unless the data is preserved for more than 20 hours when the user does not take any actions.', + helpUrl: [], 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', - ], + helpUrl: [], 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'], + helpUrl: [], ruleType: 'notice', }, { - ruleId: 'C39', - description: '', - helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/C39'], + ruleId: '2_3_3.Check', + description: + 'Check that motion animation triggered by interaction can be disabled, unless the animation is essential to the functionality or the information being conveyed.', + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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', - ], + helpUrl: [], ruleType: 'notice', }, { @@ -1428,399 +1183,382 @@ export const htmlcsRules = [ 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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', - ], + helpUrl: [], 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', - ], + helpUrl: [], 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', - ], + helpUrl: [], 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', - ], + helpUrl: [], 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', - ], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + ruleId: '2_5_1.Check', + description: + 'Check that all functionality that uses multipoint or path-based gestures for operation can be operated with a single pointer without a path-based gesture, unless a multipoint or path-based gesture is essential.', + helpUrl: [], ruleType: 'notice', }, { - ruleId: 'F96', - description: '', - helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/F96'], + ruleId: '2_5_2.SinglePointer_Check', + description: + 'Check that for functionality that can be operated using a single pointer, at least one of the following is true: No Down-Event: The down-event of the pointer is not used to execute any part of the function; Abort or Undo: Completion of the function is on the up-event, and a mechanism is available to abort the function before completion or to undo the function after completion; Up Reversal: The up-event reverses any outcome of the preceding down-event; Essential: Completing the function on the down-event is essential.', + helpUrl: [], + ruleType: 'notice', + }, + { + ruleId: '2_5_2.Mousedown_Check', + description: + 'This element has an mousedown event listener. Check that for functionality that can be operated using a single pointer, at least one of the following is true: No Down-Event: The down-event of the pointer is not used to execute any part of the function; Abort or Undo: Completion of the function is on the up-event, and a mechanism is available to abort the function before completion or to undo the function after completion; Up Reversal: The up-event reverses any outcome of the preceding down-event; Essential: Completing the function on the down-event is essential.', + helpUrl: [], + ruleType: 'notice', + }, + { + ruleId: '2_5_2.Touchstart_Check', + description: + 'This element has a touchstart event listener. Check that for functionality that can be operated using a single pointer, at least one of the following is true: No Down-Event: The down-event of the pointer is not used to execute any part of the function; Abort or Undo: Completion of the function is on the up-event, and a mechanism is available to abort the function before completion or to undo the function after completion; Up Reversal: The up-event reverses any outcome of the preceding down-event; Essential: Completing the function on the down-event is essential.', + helpUrl: [], + ruleType: 'notice', + }, + { + ruleId: '2_5_3_F96.Check', + description: + 'Check that for user interface components with labels that include text or images of text, the name contains the text that is presented visually.', + helpUrl: [], + ruleType: 'notice', + }, + { + ruleId: '2_5_3_F96.AccessibleName', + description: + 'Accessible name for this element does not contain the visible label text. Check that for user interface components with labels that include text or images of text, the name contains the text that is presented visually.', + helpUrl: [], + ruleType: 'warning', + }, + { + ruleId: '2_5_4.Check', + description: + 'Check that functionality that can be operated by device motion or user motion can also be operated by user interface components and responding to the motion can be disabled to prevent accidental actuation, except when: Supported Interface: The motion is used to operate functionality through an accessibility supported interface; Essential: The motion is essential for the function and doing so would invalidate the activity. ', + helpUrl: [], + ruleType: 'notice', + }, + { + ruleId: '2_5_4.Devicemotion', + description: + 'This element has a devicemotion event listener. Check that functionality that can be operated by device motion or user motion can also be operated by user interface components and responding to the motion can be disabled to prevent accidental actuation, except when: Supported Interface: The motion is used to operate functionality through an accessibility supported interface; Essential: The motion is essential for the function and doing so would invalidate the activity. ', + helpUrl: [], ruleType: 'warning', }, - { ruleId: '', description: '', helpUrl: [], ruleType: 'notice' }, - { ruleId: '', description: '', helpUrl: [], ruleType: 'warning' }, - { ruleId: '', description: '', helpUrl: [], ruleType: 'notice' }, - { ruleId: '', description: '', helpUrl: [], ruleType: 'notice' }, + { + ruleId: '2_5_5.Check', + description: + 'Check that the size of the target for pointer inputs is at least 44 by 44 CSS pixels except when: Equivalent: The target is available through an equivalent link or control on the same page that is at least 44 by 44 CSS pixels; Inline: The target is in a sentence or block of text; User Agent Control: The size of the target is determined by the user agent and is not modified by the author; Essential: A particular presentation of the target is essential to the information being conveyed. ', + helpUrl: [], + ruleType: 'notice', + }, + { + ruleId: '2_5_6.Check', + description: + 'Check that the content does not restrict use of input modalities available on a platform except where the restriction is essential, required to ensure the security of the content, or required to respect user settings.', + 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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', - ], + helpUrl: [], 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', - ], + helpUrl: [], 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', - ], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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', - ], + helpUrl: [], 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', - ], + helpUrl: [], 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'], + helpUrl: [], 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', - ], + helpUrl: [], 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', - ], + helpUrl: [], 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', - ], + helpUrl: [], ruleType: 'notice', }, + { ruleId: '4_1_2_null', description: 'msg', helpUrl: [], ruleType: 'error' }, { - ruleId: 'F77', - description: '', - helpUrl: ['https://www.w3.org/TR/WCAG20-TECHS/F77'], - ruleType: 'error', + ruleId: '4_1_2_null', + description: 'msg', + helpUrl: [], + ruleType: 'warning', }, - { 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], 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'], + helpUrl: [], ruleType: 'error', }, - { ruleId: '', description: '', helpUrl: [], ruleType: 'notice' }, + { + ruleId: '4_1_3_ARIA22,G199,ARIA19,G83,G84,G85,G139,G177,G194,ARIA23.Check', + description: + 'Check that status messages can be programmatically determined through role or properties such that they can be presented to the user by assistive technologies without receiving focus.', + helpUrl: [], + ruleType: 'notice', + }, ] diff --git a/kayle/package.json b/kayle/package.json index 5ed50ba..e26f062 100644 --- a/kayle/package.json +++ b/kayle/package.json @@ -1,6 +1,6 @@ { "name": "kayle", - "version": "0.8.28", + "version": "0.8.29", "description": "Extremely fast and accurate accessibility engine built for any headless tool like playwright or puppeteer.", "main": "./build/index.js", "keywords": [ @@ -84,6 +84,7 @@ "@types/node": "^18.11.9", "acorn": "^8.11.3", "acorn-walk": "^8.3.2", + "escodegen": "^2.1.0", "prettier": "^3.2.5", "puppeteer": "^21.2.1", "typescript": "^4.9.3" diff --git a/yarn.lock b/yarn.lock index 4eb218f..4690d25 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2070,42 +2070,6 @@ __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" @@ -4251,19 +4215,6 @@ __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" @@ -4973,20 +4924,6 @@ __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" @@ -5963,9 +5900,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" + escodegen: "npm:^2.1.0" fast_axecore: "workspace:*" fast_htmlcs: "workspace:*" kayle_innate: "workspace:*" @@ -6429,15 +6366,6 @@ __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" @@ -6447,6 +6375,15 @@ __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" @@ -8021,17 +7958,6 @@ __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" @@ -8126,7 +8052,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 @@ -8737,15 +8663,6 @@ __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"