diff --git a/kayle/bench/fast_axecore-playwright.ts b/kayle/bench/fast_axecore-playwright.ts index bace8587..9f2707e4 100644 --- a/kayle/bench/fast_axecore-playwright.ts +++ b/kayle/bench/fast_axecore-playwright.ts @@ -53,7 +53,7 @@ async function launchBench() { unit: "OPS/S", value: 1000 / avg, }, - ]), + ]) ); } diff --git a/kayle/bench/fast_htmlcs-playwright.ts b/kayle/bench/fast_htmlcs-playwright.ts index 08925d20..fc495d85 100644 --- a/kayle/bench/fast_htmlcs-playwright.ts +++ b/kayle/bench/fast_htmlcs-playwright.ts @@ -53,7 +53,7 @@ async function launchBench() { unit: "OPS/S", value: 1000 / avg, }, - ]), + ]) ); } diff --git a/kayle/builder/build-extension.ts b/kayle/builder/build-extension.ts index c28ab6b3..91cdbeda 100644 --- a/kayle/builder/build-extension.ts +++ b/kayle/builder/build-extension.ts @@ -52,7 +52,7 @@ window.addEventListener("kayle_send", async (event) => { writeFileSync( `${ext}/content-script.js`, - `${extensionRunner}\n${extensionAxe}\n${extensionHtmlcs}\n${extensionRawEnd}`, + `${extensionRunner}\n${extensionAxe}\n${extensionHtmlcs}\n${extensionRawEnd}` ); const extensionManifest = `{ diff --git a/kayle/builder/build-htmlcs-params.ts b/kayle/builder/build-htmlcs-params.ts index ac4c5b4f..eba1bce5 100644 --- a/kayle/builder/build-htmlcs-params.ts +++ b/kayle/builder/build-htmlcs-params.ts @@ -83,7 +83,7 @@ const processFile = (filePath, paramList: ParamList[]) => { if (!guide) { guide = code.match( - /(_global\.HTMLCS_WCAG2AAA_Sniffs_)([A-Za-z0-9_]+)/, + /(_global\.HTMLCS_WCAG2AAA_Sniffs_)([A-Za-z0-9_]+)/ ); if (guide && guide[2]) { const end = guide[2].length - 23; diff --git a/kayle/builder/build-rules.ts b/kayle/builder/build-rules.ts index c37e9815..c7bc701d 100644 --- a/kayle/builder/build-rules.ts +++ b/kayle/builder/build-rules.ts @@ -37,7 +37,7 @@ import type { Rule } from "./build-types"; origin: "https://www.example.com", language, }, - true, + true ); await Promise.all([ @@ -54,7 +54,7 @@ import type { Rule } from "./build-types"; content: `window.htmlcsRuleMap = ${htmlcsRuleMap.toString()};`, }), page.exposeFunction("pushHtmlcsRule", (t: Rule[]) => - fast_htmlcs_rules.push(...t), + fast_htmlcs_rules.push(...t) ), page.exposeFunction("pushAxeRule", (t: Rule) => fast_axe_rules.push(t)), ]); @@ -76,19 +76,29 @@ import type { Rule } from "./build-types"; const DNE = "THIS FILE WAS CREATED DYNAMICALLY - DO NOT EDIT"; + const rs = new Set(); + await writeFile( `./lib/rules/${language}/htmlcs-rules.ts`, Buffer.from( await format( `/* ${DNE} */\nexport const htmlcsRules = ${JSON.stringify( fast_htmlcs_rules - .filter((r) => r.description) - .sort((a, b) => a.ruleId.localeCompare(b.ruleId)), + .filter((r) => { + if (rs.has(r.ruleId)) { + return false; + } + + rs.add(r.ruleId); + + return r.description; + }) + .sort((a, b) => a.ruleId.localeCompare(b.ruleId)) )};`, - pConfig, - ), + pConfig + ) ), - "utf8", + "utf8" ); await writeFile( @@ -96,12 +106,12 @@ import type { Rule } from "./build-types"; Buffer.from( await format( `/* ${DNE} */\nexport const axeRules = ${JSON.stringify( - fast_axe_rules.sort((a, b) => a.ruleId.localeCompare(b.ruleId)), + fast_axe_rules.sort((a, b) => a.ruleId.localeCompare(b.ruleId)) )};`, - pConfig, - ), + pConfig + ) ), - "utf8", + "utf8" ); await page.close({ @@ -110,7 +120,7 @@ import type { Rule } from "./build-types"; }; const localesList: string[] = Array.from( - new Set(htmlcsLocales.concat(axeLocales)), + new Set(htmlcsLocales.concat(axeLocales)) ); localesList.push("en"); @@ -130,9 +140,13 @@ import type { Rule } from "./build-types"; }; // import rule list with locales - export const importRules = async (locale: ${localesList.map((l) => `"${l}"`).join(" | ")}, runner: "htmlcs" | "axe"): Promise => { + export const importRules = async (locale: ${localesList + .map((l) => `"${l}"`) + .join( + " | " + )}, runner: "htmlcs" | "axe", baseDir?: "string"): Promise => { const rules = await import(` + - "`./${locale.replace('-', '_')}/${runner === 'htmlcs' ? 'htmlcs' : 'axe'}-rules`" + + "`${baseDir || './'}${locale.replace('-', '_')}/${runner === 'htmlcs' ? 'htmlcs' : 'axe'}-rules`" + `` + `); @@ -153,10 +167,10 @@ import type { Rule } from "./build-types"; ${runnerImports} `, - pConfig, - ), + pConfig + ) ), - "utf8", + "utf8" ); await browser.close(); diff --git a/kayle/lib/action.ts b/kayle/lib/action.ts index 909222c7..e336375a 100644 --- a/kayle/lib/action.ts +++ b/kayle/lib/action.ts @@ -56,13 +56,13 @@ export const actions = [ target.dispatchEvent( new Event("input", { bubbles: true, - }), + }) ); return Promise.resolve(); }, selector, - value, + value ); } catch (error) { throw new Error(`${failedActionElement} "${selector}"`); @@ -91,7 +91,7 @@ export const actions = [ target.dispatchEvent( new Event("input", { bubbles: true, - }), + }) ); return Promise.resolve(); }, selector); @@ -117,12 +117,12 @@ export const actions = [ target.dispatchEvent( new Event("change", { bubbles: true, - }), + }) ); return Promise.resolve(); }, selector, - checked, + checked ); } catch (error) { throw new Error(`${failedActionElement} "${selector}"`); @@ -176,7 +176,7 @@ export const actions = [ {}, property, expectedValue, - negated, + negated ); }, }, @@ -216,7 +216,7 @@ export const actions = [ polling: 200, }, selector, - state, + state ); }, }, @@ -244,11 +244,11 @@ export const actions = [ }, { once: true, - }, + } ); }, selector, - eventType, + eventType ); await page.waitForFunction( @@ -263,7 +263,7 @@ export const actions = [ }, { polling: 200, - }, + } ); } catch (error) { throw new Error(`${failedActionElement} "${selector}"`); @@ -283,7 +283,7 @@ export const actions = [ */ export async function runAction(browser, page, options, act, customActions?) { const action = (customActions ?? actions).find((item) => - item.match.test(act), + item.match.test(act) ); if (!action) { diff --git a/kayle/lib/auto.ts b/kayle/lib/auto.ts index dcde82d9..e92df798 100644 --- a/kayle/lib/auto.ts +++ b/kayle/lib/auto.ts @@ -17,7 +17,7 @@ export async function autoKayle( cb?: ((result: Audit) => Promise) | ((result: Audit) => void); } = {}, ignoreSet?: Set, - _results?: Audit[], + _results?: Audit[] ): Promise { if (!write) { const { writeFile } = await import("fs/promises"); @@ -51,7 +51,7 @@ export async function autoKayle( if (o.store) { await write( `${o.store}/${encodeURIComponent(o.page.url())}`, - await o.page.content(), + await o.page.content() ); } @@ -84,7 +84,7 @@ export async function autoKayle( origin: link, }, ignoreSet, - _results, + _results ); }) .catch((e) => { @@ -94,7 +94,7 @@ export async function autoKayle( console.error(e); } }); - }), + }) ); return _results; diff --git a/kayle/lib/config.ts b/kayle/lib/config.ts index 3f0ed360..51313dd2 100644 --- a/kayle/lib/config.ts +++ b/kayle/lib/config.ts @@ -42,7 +42,7 @@ type BrowserContext = { newCDPSession?(page: Partial | Frame): Partial; overridePermissions?( origin: string, - permissions: Permission[], + permissions: Permission[] ): Promise; }; @@ -89,7 +89,7 @@ type Page = { _routes?: { url: string }[]; route( path: string, - intercept: (config: any, next: any) => Promise | Promise, + intercept: (config: any, next: any) => Promise | Promise ): Promise; setRequestInterception?(enable?: boolean): Promise; listenerCount?(name: string): number; @@ -99,19 +99,19 @@ type Page = { | Function | { default: Function; - }, + } ): Promise; addInitScript?(script: { content?: string }): Promise; evaluateOnNewDocument?< Params extends unknown[], - Func extends (...args: Params) => unknown = (...args: Params) => unknown, + Func extends (...args: Params) => unknown = (...args: Params) => unknown >( pageFunction: Func | string, ...args: Params ): Promise<{ identifier: string }>; evaluate< Params extends unknown[], - Func extends EvaluateFunc = EvaluateFunc, + Func extends EvaluateFunc = EvaluateFunc >( pageFunction: Func | string, ...args: Params diff --git a/kayle/lib/kayle.ts b/kayle/lib/kayle.ts index f4a2b6fa..b6864277 100644 --- a/kayle/lib/kayle.ts +++ b/kayle/lib/kayle.ts @@ -32,7 +32,7 @@ const audit = async (config: RunnerConfig): Promise => { origin: config.origin, language: config.language, clip: config.clip, - }, + } ); }; @@ -61,7 +61,7 @@ const injectRunners = async (config: RunnerConfig) => { return await Promise.allSettled([ config.page.evaluate(runnersJavascript["kayle"]), ...config.runners.map((r) => - config.page.evaluate(getRunner(config.language, r)), + config.page.evaluate(getRunner(config.language, r)) ), ]); } @@ -77,7 +77,7 @@ export const auditExtension = async (config: RunnerConfig): Promise => { } window.addEventListener("kayle_receive", (event: CustomEvent) => - resolve(event.detail.data), + resolve(event.detail.data) ); window.dispatchEvent( @@ -86,7 +86,7 @@ export const auditExtension = async (config: RunnerConfig): Promise => { name: "kayle", options: runOptions, }, - }), + }) ); }); }, @@ -100,7 +100,7 @@ export const auditExtension = async (config: RunnerConfig): Promise => { origin: config.origin, language: config.language, clip: config.clip, - }, + } ); }; @@ -121,7 +121,7 @@ const auditPageInnate = async (config: RunnerConf, results: Audit) => { const innateAudit: InnateIssue[] = await kayle_innate.audit( html, css, - config.clip, + config.clip ); for (const innateIssue of innateAudit) { @@ -163,7 +163,7 @@ const auditPageInnate = async (config: RunnerConf, results: Audit) => { */ export const kayle = async ( o: RunnerConf = {}, - preventClose?: boolean, + preventClose?: boolean ): Promise => { const watcher = new Watcher(); const navigate = o.page.url() === "about:blank" && (o.origin || o.html); @@ -212,7 +212,7 @@ export const kayle = async ( } return item; - }), + }) ); } diff --git a/kayle/lib/lint.ts b/kayle/lib/lint.ts index 2b420f1a..d8c36e36 100644 --- a/kayle/lib/lint.ts +++ b/kayle/lib/lint.ts @@ -12,7 +12,7 @@ export const kayleLint = async ( source?: string, // url or html source o: Partial = {}, runner?: keyof typeof runnersJavascript, - forward?: boolean, // forward messages to console + forward?: boolean // forward messages to console ) => { const config = extractArgs(o); let html = source; @@ -55,7 +55,7 @@ export const kayleLint = async ( dom.window.eval(runnersJavascript.kayle); dom.window.eval( - runner ? runnersJavascript[runner] : runnersJavascript["htmlcs"], + runner ? runnersJavascript[runner] : runnersJavascript["htmlcs"] ); const results = await dom.window.__a11y.run({ diff --git a/kayle/lib/rules/ar/htmlcs-rules.ts b/kayle/lib/rules/ar/htmlcs-rules.ts index 690cb68d..9ee2f949 100644 --- a/kayle/lib/rules/ar/htmlcs-rules.ts +++ b/kayle/lib/rules/ar/htmlcs-rules.ts @@ -366,22 +366,6 @@ export const htmlcsRules = [ ruleType: "error", tags: ["WCAGA", "WCAGAA", "WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_1.1_1_1_H2.EG3", - description: - "يجب ألا يستخدم عنصر Img داخل رابط النص alt الذي يكرر محتوى رابط النص بجانبه.", - helpUrl: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, - { - ruleId: "Principle1.Guideline1_1.1_1_1_H2.EG4", - description: - "عنصر Img داخل رابط له نص alt فارغ أو مفقود عندما يحتوي رابط بجانبه على نص رابط. ضع في اعتبارك دمج الروابط.", - helpUrl: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_1.1_1_1_H2.EG4", description: @@ -669,14 +653,6 @@ export const htmlcsRules = [ ruleType: "error", tags: ["WCAGA", "WCAGAA", "WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_3.1_3_1_H43,H63", - description: - "العلاقة بين عناصر td وعناصر th المرتبطة بها غير محددة. استخدم إما سمة النطاق على عناصر th، أو سمة العناوين على عناصر td.", - helpUrl: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_3.1_3_1_H43.HeadersRequired", description: @@ -700,22 +676,6 @@ export const htmlcsRules = [ ruleType: "error", tags: ["WCAGA", "WCAGAA", "WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_3.1_3_1_H43.MissingHeaderIds", - description: - "ليس كل عناصر th في هذا الجدول تحتوي على سمة id. يجب أن تحتوي هذه الخلايا على معرفات حتى يمكن الإشارة إليها بواسطة سمات العناوين في عناصر td.", - helpUrl: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, - { - ruleId: "Principle1.Guideline1_3.1_3_1_H43.MissingHeadersAttrs", - description: - "ليس كل عناصر td في هذا الجدول تحتوي على سمة عناوين. يجب أن تحتوي كل سمة عناوين على قائمة بمعرفات كل عناصر th المرتبطة بهذه الخلية.", - helpUrl: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_3.1_3_1_H43.MissingHeadersAttrs", description: @@ -1092,22 +1052,6 @@ export const htmlcsRules = [ ruleType: "warning", tags: ["WCAGAA"], }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.Abs", - description: - "هذا العنصر موضوع بشكل مطلق ولا يمكن تحديد لون الخلفية. تأكد من أن نسبة التباين بين النص وجميع الأجزاء المغطاة من الخلفية على الأقل {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.Alpha", - description: - "نص أو خلفية هذا العنصر يحتوي على شفافية. تأكد من أن نسبة التباين بين النص والخلفية على الأقل {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, { ruleId: "Principle1.Guideline1_4.1_4_3_G145.Alpha", description: @@ -1124,22 +1068,6 @@ export const htmlcsRules = [ ruleType: "warning", tags: ["WCAGAA"], }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.BgGradient", - description: - "نص هذا العنصر موضوع على تدرج. تأكد من أن نسبة التباين بين النص وجميع الأجزاء المغطاة من التدرج على الأقل {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.BgImage", - description: - "نص هذا العنصر موضوع على صورة خلفية. تأكد من أن نسبة التباين بين النص وجميع الأجزاء المغطاة من الصورة على الأقل {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, { ruleId: "Principle1.Guideline1_4.1_4_3_G145.BgImage", description: @@ -1172,22 +1100,6 @@ export const htmlcsRules = [ ruleType: "warning", tags: ["WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_4.1_4_6_G17.Abs", - description: - "هذا العنصر موضوع بشكل مطلق ولا يمكن تحديد لون الخلفية. تأكد من أن نسبة التباين بين النص وجميع الأجزاء المغطاة من الخلفية على الأقل {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAAA"], - }, - { - ruleId: "Principle1.Guideline1_4.1_4_6_G17.BgImage", - description: - "نص هذا العنصر موضوع على صورة خلفية. تأكد من أن نسبة التباين بين النص وجميع الأجزاء المغطاة من الصورة على الأقل {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_4.1_4_6_G17.BgImage", description: diff --git a/kayle/lib/rules/da/htmlcs-rules.ts b/kayle/lib/rules/da/htmlcs-rules.ts index 0cbac135..16e80759 100644 --- a/kayle/lib/rules/da/htmlcs-rules.ts +++ b/kayle/lib/rules/da/htmlcs-rules.ts @@ -367,22 +367,6 @@ export const htmlcsRules = [ ruleType: "error", tags: ["WCAGA", "WCAGAA", "WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_1.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: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, - { - ruleId: "Principle1.Guideline1_1.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: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_1.1_1_1_H2.EG4", description: @@ -671,14 +655,6 @@ export const htmlcsRules = [ ruleType: "error", tags: ["WCAGA", "WCAGAA", "WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_3.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: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_3.1_3_1_H43.HeadersRequired", description: @@ -702,22 +678,6 @@ export const htmlcsRules = [ ruleType: "error", tags: ["WCAGA", "WCAGAA", "WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_3.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: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, - { - ruleId: "Principle1.Guideline1_3.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: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_3.1_3_1_H43.MissingHeadersAttrs", description: @@ -1095,22 +1055,6 @@ export const htmlcsRules = [ ruleType: "warning", tags: ["WCAGAA"], }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.Abs", - description: - "This element is absolutely positioned and the background color can not be determined. Ensure the contrast ratio between the text and all covered parts of the background are at least {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.Alpha", - description: - "This element's text or background contains transparency. Ensure the contrast ratio between the text and background are at least {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, { ruleId: "Principle1.Guideline1_4.1_4_3_G145.Alpha", description: @@ -1127,22 +1071,6 @@ export const htmlcsRules = [ ruleType: "warning", tags: ["WCAGAA"], }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.BgGradient", - description: - "This element's text is placed on a gradient. Ensure the contrast ratio between the text and all covered parts of the gradient are at least {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.BgImage", - description: - "This element's text is placed on a background image. Ensure the contrast ratio between the text and all covered parts of the image are at least {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, { ruleId: "Principle1.Guideline1_4.1_4_3_G145.BgImage", description: @@ -1175,22 +1103,6 @@ export const htmlcsRules = [ ruleType: "warning", tags: ["WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_4.1_4_6_G17.Abs", - description: - "This element is absolutely positioned and the background color can not be determined. Ensure the contrast ratio between the text and all covered parts of the background are at least {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAAA"], - }, - { - ruleId: "Principle1.Guideline1_4.1_4_6_G17.BgImage", - description: - "This element's text is placed on a background image. Ensure the contrast ratio between the text and all covered parts of the image are at least {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_4.1_4_6_G17.BgImage", description: diff --git a/kayle/lib/rules/de/htmlcs-rules.ts b/kayle/lib/rules/de/htmlcs-rules.ts index 0cbac135..16e80759 100644 --- a/kayle/lib/rules/de/htmlcs-rules.ts +++ b/kayle/lib/rules/de/htmlcs-rules.ts @@ -367,22 +367,6 @@ export const htmlcsRules = [ ruleType: "error", tags: ["WCAGA", "WCAGAA", "WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_1.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: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, - { - ruleId: "Principle1.Guideline1_1.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: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_1.1_1_1_H2.EG4", description: @@ -671,14 +655,6 @@ export const htmlcsRules = [ ruleType: "error", tags: ["WCAGA", "WCAGAA", "WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_3.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: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_3.1_3_1_H43.HeadersRequired", description: @@ -702,22 +678,6 @@ export const htmlcsRules = [ ruleType: "error", tags: ["WCAGA", "WCAGAA", "WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_3.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: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, - { - ruleId: "Principle1.Guideline1_3.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: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_3.1_3_1_H43.MissingHeadersAttrs", description: @@ -1095,22 +1055,6 @@ export const htmlcsRules = [ ruleType: "warning", tags: ["WCAGAA"], }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.Abs", - description: - "This element is absolutely positioned and the background color can not be determined. Ensure the contrast ratio between the text and all covered parts of the background are at least {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.Alpha", - description: - "This element's text or background contains transparency. Ensure the contrast ratio between the text and background are at least {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, { ruleId: "Principle1.Guideline1_4.1_4_3_G145.Alpha", description: @@ -1127,22 +1071,6 @@ export const htmlcsRules = [ ruleType: "warning", tags: ["WCAGAA"], }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.BgGradient", - description: - "This element's text is placed on a gradient. Ensure the contrast ratio between the text and all covered parts of the gradient are at least {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.BgImage", - description: - "This element's text is placed on a background image. Ensure the contrast ratio between the text and all covered parts of the image are at least {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, { ruleId: "Principle1.Guideline1_4.1_4_3_G145.BgImage", description: @@ -1175,22 +1103,6 @@ export const htmlcsRules = [ ruleType: "warning", tags: ["WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_4.1_4_6_G17.Abs", - description: - "This element is absolutely positioned and the background color can not be determined. Ensure the contrast ratio between the text and all covered parts of the background are at least {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAAA"], - }, - { - ruleId: "Principle1.Guideline1_4.1_4_6_G17.BgImage", - description: - "This element's text is placed on a background image. Ensure the contrast ratio between the text and all covered parts of the image are at least {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_4.1_4_6_G17.BgImage", description: diff --git a/kayle/lib/rules/en/htmlcs-rules.ts b/kayle/lib/rules/en/htmlcs-rules.ts index 0cbac135..16e80759 100644 --- a/kayle/lib/rules/en/htmlcs-rules.ts +++ b/kayle/lib/rules/en/htmlcs-rules.ts @@ -367,22 +367,6 @@ export const htmlcsRules = [ ruleType: "error", tags: ["WCAGA", "WCAGAA", "WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_1.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: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, - { - ruleId: "Principle1.Guideline1_1.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: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_1.1_1_1_H2.EG4", description: @@ -671,14 +655,6 @@ export const htmlcsRules = [ ruleType: "error", tags: ["WCAGA", "WCAGAA", "WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_3.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: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_3.1_3_1_H43.HeadersRequired", description: @@ -702,22 +678,6 @@ export const htmlcsRules = [ ruleType: "error", tags: ["WCAGA", "WCAGAA", "WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_3.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: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, - { - ruleId: "Principle1.Guideline1_3.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: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_3.1_3_1_H43.MissingHeadersAttrs", description: @@ -1095,22 +1055,6 @@ export const htmlcsRules = [ ruleType: "warning", tags: ["WCAGAA"], }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.Abs", - description: - "This element is absolutely positioned and the background color can not be determined. Ensure the contrast ratio between the text and all covered parts of the background are at least {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.Alpha", - description: - "This element's text or background contains transparency. Ensure the contrast ratio between the text and background are at least {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, { ruleId: "Principle1.Guideline1_4.1_4_3_G145.Alpha", description: @@ -1127,22 +1071,6 @@ export const htmlcsRules = [ ruleType: "warning", tags: ["WCAGAA"], }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.BgGradient", - description: - "This element's text is placed on a gradient. Ensure the contrast ratio between the text and all covered parts of the gradient are at least {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.BgImage", - description: - "This element's text is placed on a background image. Ensure the contrast ratio between the text and all covered parts of the image are at least {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, { ruleId: "Principle1.Guideline1_4.1_4_3_G145.BgImage", description: @@ -1175,22 +1103,6 @@ export const htmlcsRules = [ ruleType: "warning", tags: ["WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_4.1_4_6_G17.Abs", - description: - "This element is absolutely positioned and the background color can not be determined. Ensure the contrast ratio between the text and all covered parts of the background are at least {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAAA"], - }, - { - ruleId: "Principle1.Guideline1_4.1_4_6_G17.BgImage", - description: - "This element's text is placed on a background image. Ensure the contrast ratio between the text and all covered parts of the image are at least {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_4.1_4_6_G17.BgImage", description: diff --git a/kayle/lib/rules/es/htmlcs-rules.ts b/kayle/lib/rules/es/htmlcs-rules.ts index e9f76076..11a7de22 100644 --- a/kayle/lib/rules/es/htmlcs-rules.ts +++ b/kayle/lib/rules/es/htmlcs-rules.ts @@ -367,22 +367,6 @@ export const htmlcsRules = [ ruleType: "error", tags: ["WCAGA", "WCAGAA", "WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_1.1_1_1_H2.EG3", - description: - "El elemento Img dentro de un enlace no debe usar un texto alternativo que duplique el contenido de un enlace de texto junto a él.", - helpUrl: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, - { - ruleId: "Principle1.Guideline1_1.1_1_1_H2.EG4", - description: - "El elemento Img dentro de un enlace tiene un texto alternativo vacío o faltante cuando un enlace junto a él contiene texto de enlace. Considera la posibilidad de combinar los enlaces.", - helpUrl: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_1.1_1_1_H2.EG4", description: @@ -671,14 +655,6 @@ export const htmlcsRules = [ ruleType: "error", tags: ["WCAGA", "WCAGAA", "WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_3.1_3_1_H43,H63", - description: - "La relación entre los elementos td y sus elementos th asociados no está definida. Utiliza either el atributo scope en los elementos th o el atributo headers en los elementos td.", - helpUrl: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_3.1_3_1_H43.HeadersRequired", description: @@ -703,22 +679,6 @@ export const htmlcsRules = [ ruleType: "error", tags: ["WCAGA", "WCAGAA", "WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_3.1_3_1_H43.MissingHeaderIds", - description: - "No todos los elementos th en esta tabla contienen un atributo id. Estas celdas deben contener ids para que puedan ser referenciadas por los atributos headers de los elementos td.", - helpUrl: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, - { - ruleId: "Principle1.Guideline1_3.1_3_1_H43.MissingHeadersAttrs", - description: - "No todos los elementos td en esta tabla contienen un atributo headers. Cada atributo headers debe enumerar los ids de todos los elementos th asociados con esa celda.", - helpUrl: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_3.1_3_1_H43.MissingHeadersAttrs", description: @@ -1095,22 +1055,6 @@ export const htmlcsRules = [ ruleType: "warning", tags: ["WCAGAA"], }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.Abs", - description: - "Este elemento está posicionado absolutamente y no se puede determinar el color de fondo. Asegúrate de que la relación de contraste entre el texto y todas las partes cubiertas del fondo sea al menos de {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.Alpha", - description: - "El texto o el fondo de este elemento contienen transparencia. Asegúrate de que la relación de contraste entre el texto y el fondo sea de al menos de {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, { ruleId: "Principle1.Guideline1_4.1_4_3_G145.Alpha", description: @@ -1127,14 +1071,6 @@ export const htmlcsRules = [ ruleType: "warning", tags: ["WCAGAA"], }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.BgImage", - description: - "El texto de este elemento se coloca sobre una imagen de fondo. Asegúrate de que la relación de contraste entre el texto y todas las partes cubiertas de la imagen sea al menos de {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, { ruleId: "Principle1.Guideline1_4.1_4_4_G142", description: @@ -1159,22 +1095,6 @@ export const htmlcsRules = [ ruleType: "warning", tags: ["WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_4.1_4_6_G17.Abs", - description: - "Este elemento está posicionado absolutamente y no se puede determinar el color de fondo. Asegúrate de que la relación de contraste entre el texto y todas las partes cubiertas del fondo sea al menos de {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAAA"], - }, - { - ruleId: "Principle1.Guideline1_4.1_4_6_G17.BgImage", - description: - "El texto de este elemento se coloca sobre una imagen de fondo. Asegúrate de que la relación de contraste entre el texto y todas las partes cubiertas de la imagen sea al menos de {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_4.1_4_6_G17.BgImage", description: diff --git a/kayle/lib/rules/eu/htmlcs-rules.ts b/kayle/lib/rules/eu/htmlcs-rules.ts index 0cbac135..16e80759 100644 --- a/kayle/lib/rules/eu/htmlcs-rules.ts +++ b/kayle/lib/rules/eu/htmlcs-rules.ts @@ -367,22 +367,6 @@ export const htmlcsRules = [ ruleType: "error", tags: ["WCAGA", "WCAGAA", "WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_1.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: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, - { - ruleId: "Principle1.Guideline1_1.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: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_1.1_1_1_H2.EG4", description: @@ -671,14 +655,6 @@ export const htmlcsRules = [ ruleType: "error", tags: ["WCAGA", "WCAGAA", "WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_3.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: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_3.1_3_1_H43.HeadersRequired", description: @@ -702,22 +678,6 @@ export const htmlcsRules = [ ruleType: "error", tags: ["WCAGA", "WCAGAA", "WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_3.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: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, - { - ruleId: "Principle1.Guideline1_3.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: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_3.1_3_1_H43.MissingHeadersAttrs", description: @@ -1095,22 +1055,6 @@ export const htmlcsRules = [ ruleType: "warning", tags: ["WCAGAA"], }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.Abs", - description: - "This element is absolutely positioned and the background color can not be determined. Ensure the contrast ratio between the text and all covered parts of the background are at least {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.Alpha", - description: - "This element's text or background contains transparency. Ensure the contrast ratio between the text and background are at least {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, { ruleId: "Principle1.Guideline1_4.1_4_3_G145.Alpha", description: @@ -1127,22 +1071,6 @@ export const htmlcsRules = [ ruleType: "warning", tags: ["WCAGAA"], }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.BgGradient", - description: - "This element's text is placed on a gradient. Ensure the contrast ratio between the text and all covered parts of the gradient are at least {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.BgImage", - description: - "This element's text is placed on a background image. Ensure the contrast ratio between the text and all covered parts of the image are at least {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, { ruleId: "Principle1.Guideline1_4.1_4_3_G145.BgImage", description: @@ -1175,22 +1103,6 @@ export const htmlcsRules = [ ruleType: "warning", tags: ["WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_4.1_4_6_G17.Abs", - description: - "This element is absolutely positioned and the background color can not be determined. Ensure the contrast ratio between the text and all covered parts of the background are at least {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAAA"], - }, - { - ruleId: "Principle1.Guideline1_4.1_4_6_G17.BgImage", - description: - "This element's text is placed on a background image. Ensure the contrast ratio between the text and all covered parts of the image are at least {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_4.1_4_6_G17.BgImage", description: diff --git a/kayle/lib/rules/fr/htmlcs-rules.ts b/kayle/lib/rules/fr/htmlcs-rules.ts index a8aab068..e2aac751 100644 --- a/kayle/lib/rules/fr/htmlcs-rules.ts +++ b/kayle/lib/rules/fr/htmlcs-rules.ts @@ -367,22 +367,6 @@ export const htmlcsRules = [ ruleType: "error", tags: ["WCAGA", "WCAGAA", "WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_1.1_1_1_H2.EG3", - description: - "L'élément Img à l'intérieur d'un lien ne doit pas utiliser de texte alt qui duplique le contenu d'un lien texte à côté.", - helpUrl: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, - { - ruleId: "Principle1.Guideline1_1.1_1_1_H2.EG4", - description: - "L'élément Img à l'intérieur d'un lien a du texte alt vide ou manquant lorsqu'un lien à côté contient du texte de lien. Pensez à combiner les liens.", - helpUrl: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_1.1_1_1_H2.EG4", description: @@ -671,14 +655,6 @@ export const htmlcsRules = [ ruleType: "error", tags: ["WCAGA", "WCAGAA", "WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_3.1_3_1_H43,H63", - description: - "La relation entre les éléments td et leurs éléments associés n'est pas définie. Utilisez soit l'attribut scope sur ces éléments, soit l'attribut headers sur les éléments td.", - helpUrl: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_3.1_3_1_H43.HeadersRequired", description: @@ -702,22 +678,6 @@ export const htmlcsRules = [ ruleType: "error", tags: ["WCAGA", "WCAGAA", "WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_3.1_3_1_H43.MissingHeaderIds", - description: - "Tous les éléments de cette table ne contiennent pas un attribut id. Ces cellules devraient contenir des ids de sorte qu'elles puissent être référencées par des éléments td attributs d'en-têtes.", - helpUrl: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, - { - ruleId: "Principle1.Guideline1_3.1_3_1_H43.MissingHeadersAttrs", - description: - "Tous les éléments td de cette table ne contiennent pas un attribut d'en-tête. Chaque attribut d'en-tête devrait énumérer les ids de tous les éléments associés à cette cellule.", - helpUrl: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_3.1_3_1_H43.MissingHeadersAttrs", description: @@ -1031,14 +991,6 @@ export const htmlcsRules = [ ruleType: "warning", tags: ["WCAGAA"], }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.Abs", - description: - "Cet élément est absolument positionné et la couleur de fond ne peut pas être déterminée. Assurez-vous que le rapport de contraste entre le texte et toutes les parties couvertes de l'arrière-plan est d'au moins {{nécessaire}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, { ruleId: "Principle1.Guideline1_4.1_4_3_G145.Alpha", description: @@ -1047,22 +999,6 @@ export const htmlcsRules = [ ruleType: "warning", tags: ["WCAGAA"], }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.Alpha", - description: - "Le texte ou l'arrière-plan de cet élément contient de la transparence. Assurez-vous que le rapport de contraste entre le texte et l'arrière-plan est d'au moins {{nécessaire}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.BgGradient", - description: - "Le texte de cet élément est placé sur une pente de fond. Assurez-vous que le rapport de contraste entre le texte et toutes les parties couvertes de l'pente est d'au moins {{nécessaire}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, { ruleId: "Principle1.Guideline1_4.1_4_3_G145.BgGradient", description: @@ -1079,14 +1015,6 @@ export const htmlcsRules = [ ruleType: "warning", tags: ["WCAGAA"], }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.BgImage", - description: - "Le texte de cet élément est placé sur une image de fond. Assurez-vous que le rapport de contraste entre le texte et toutes les parties couvertes de l'image est d'au moins {{nécessaire}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, { ruleId: "Principle1.Guideline1_4.1_4_4_G142", description: @@ -1111,22 +1039,6 @@ export const htmlcsRules = [ ruleType: "warning", tags: ["WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_4.1_4_6_G145.BgGradient", - description: - "Le texte de cet élément est placé sur une pente de fond. Assurez-vous que le rapport de contraste entre le texte et toutes les parties couvertes de l'pente est d'au moins {{nécessaire}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAAA"], - }, - { - ruleId: "Principle1.Guideline1_4.1_4_6_G17.Abs", - description: - "Cet élément est absolument positionné et la couleur de fond ne peut pas être déterminée. Assurez-vous que le rapport de contraste entre le texte et toutes les parties couvertes de l'arrière-plan est d'au moins {{nécessaire}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_4.1_4_6_G17.Abs", description: @@ -1143,14 +1055,6 @@ export const htmlcsRules = [ ruleType: "warning", tags: ["WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_4.1_4_6_G17.BgImage", - description: - "Le texte de cet élément est placé sur une image de fond. Assurez-vous que le rapport de contraste entre le texte et toutes les parties couvertes de l'image est d'au moins {{nécessaire}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_4.1_4_7_G56", description: diff --git a/kayle/lib/rules/he/htmlcs-rules.ts b/kayle/lib/rules/he/htmlcs-rules.ts index 0cbac135..16e80759 100644 --- a/kayle/lib/rules/he/htmlcs-rules.ts +++ b/kayle/lib/rules/he/htmlcs-rules.ts @@ -367,22 +367,6 @@ export const htmlcsRules = [ ruleType: "error", tags: ["WCAGA", "WCAGAA", "WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_1.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: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, - { - ruleId: "Principle1.Guideline1_1.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: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_1.1_1_1_H2.EG4", description: @@ -671,14 +655,6 @@ export const htmlcsRules = [ ruleType: "error", tags: ["WCAGA", "WCAGAA", "WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_3.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: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_3.1_3_1_H43.HeadersRequired", description: @@ -702,22 +678,6 @@ export const htmlcsRules = [ ruleType: "error", tags: ["WCAGA", "WCAGAA", "WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_3.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: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, - { - ruleId: "Principle1.Guideline1_3.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: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_3.1_3_1_H43.MissingHeadersAttrs", description: @@ -1095,22 +1055,6 @@ export const htmlcsRules = [ ruleType: "warning", tags: ["WCAGAA"], }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.Abs", - description: - "This element is absolutely positioned and the background color can not be determined. Ensure the contrast ratio between the text and all covered parts of the background are at least {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.Alpha", - description: - "This element's text or background contains transparency. Ensure the contrast ratio between the text and background are at least {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, { ruleId: "Principle1.Guideline1_4.1_4_3_G145.Alpha", description: @@ -1127,22 +1071,6 @@ export const htmlcsRules = [ ruleType: "warning", tags: ["WCAGAA"], }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.BgGradient", - description: - "This element's text is placed on a gradient. Ensure the contrast ratio between the text and all covered parts of the gradient are at least {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.BgImage", - description: - "This element's text is placed on a background image. Ensure the contrast ratio between the text and all covered parts of the image are at least {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, { ruleId: "Principle1.Guideline1_4.1_4_3_G145.BgImage", description: @@ -1175,22 +1103,6 @@ export const htmlcsRules = [ ruleType: "warning", tags: ["WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_4.1_4_6_G17.Abs", - description: - "This element is absolutely positioned and the background color can not be determined. Ensure the contrast ratio between the text and all covered parts of the background are at least {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAAA"], - }, - { - ruleId: "Principle1.Guideline1_4.1_4_6_G17.BgImage", - description: - "This element's text is placed on a background image. Ensure the contrast ratio between the text and all covered parts of the image are at least {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_4.1_4_6_G17.BgImage", description: diff --git a/kayle/lib/rules/index.ts b/kayle/lib/rules/index.ts index b67f196e..bad73557 100644 --- a/kayle/lib/rules/index.ts +++ b/kayle/lib/rules/index.ts @@ -64,9 +64,12 @@ export const importRules = async ( | "pt_BR" | "en", runner: "htmlcs" | "axe", + baseDir?: "string" ): Promise => { const rules = await import( - `./${locale.replace("-", "_")}/${runner === "htmlcs" ? "htmlcs" : "axe"}-rules` + `${baseDir || "./"}${locale.replace("-", "_")}/${ + runner === "htmlcs" ? "htmlcs" : "axe" + }-rules` ); return rules.axeRules || rules.htmlcsRules; diff --git a/kayle/lib/rules/it/htmlcs-rules.ts b/kayle/lib/rules/it/htmlcs-rules.ts index e8683118..ce681b33 100644 --- a/kayle/lib/rules/it/htmlcs-rules.ts +++ b/kayle/lib/rules/it/htmlcs-rules.ts @@ -367,22 +367,6 @@ export const htmlcsRules = [ ruleType: "error", tags: ["WCAGA", "WCAGAA", "WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_1.1_1_1_H2.EG3", - description: - "L'elemento Img all'interno di un link non deve utilizzare un testo alternativo che duplica il contenuto di un link testuale accanto.", - helpUrl: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, - { - ruleId: "Principle1.Guideline1_1.1_1_1_H2.EG4", - description: - "L'elemento Img all'interno di un link ha un testo alternativo vuoto o mancante quando un link vicino contiene testo del link. Prendere in considerazione l'unione dei link.", - helpUrl: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_1.1_1_1_H2.EG4", description: @@ -671,14 +655,6 @@ export const htmlcsRules = [ ruleType: "error", tags: ["WCAGA", "WCAGAA", "WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_3.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: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_3.1_3_1_H43.HeadersRequired", description: @@ -702,22 +678,6 @@ export const htmlcsRules = [ ruleType: "error", tags: ["WCAGA", "WCAGAA", "WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_3.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: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, - { - ruleId: "Principle1.Guideline1_3.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: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_3.1_3_1_H43.MissingHeadersAttrs", description: @@ -1095,22 +1055,6 @@ export const htmlcsRules = [ ruleType: "warning", tags: ["WCAGAA"], }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.Abs", - description: - "Questo elemento è posizionato in modo assoluto e il colore dello sfondo non può essere determinato. Assicurati che il rapporto di contrasto tra il testo e tutte le parti coperte dello sfondo sia di almeno {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.Alpha", - description: - "Il testo o lo sfondo di questo elemento contiene trasparenza. Assicurati che il rapporto di contrasto tra il testo e lo sfondo sia di almeno {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, { ruleId: "Principle1.Guideline1_4.1_4_3_G145.Alpha", description: @@ -1127,22 +1071,6 @@ export const htmlcsRules = [ ruleType: "warning", tags: ["WCAGAA"], }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.BgGradient", - description: - "Il testo di questo elemento è posizionato su un gradiente. Assicurati che il rapporto di contrasto tra il testo e tutte le parti coperte del gradiente sia di almeno {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.BgImage", - description: - "Il testo di questo elemento è posizionato su un'immagine di sfondo. Assicurati che il rapporto di contrasto tra il testo e tutte le parti coperte dell'immagine sia di almeno {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, { ruleId: "Principle1.Guideline1_4.1_4_3_G145.BgImage", description: @@ -1175,22 +1103,6 @@ export const htmlcsRules = [ ruleType: "warning", tags: ["WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_4.1_4_6_G17.Abs", - description: - "This element is absolutely positioned and the background color can not be determined. Ensure the contrast ratio between the text and all covered parts of the background are at least {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAAA"], - }, - { - ruleId: "Principle1.Guideline1_4.1_4_6_G17.BgImage", - description: - "This element's text is placed on a background image. Ensure the contrast ratio between the text and all covered parts of the image are at least {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_4.1_4_6_G17.BgImage", description: diff --git a/kayle/lib/rules/ja/htmlcs-rules.ts b/kayle/lib/rules/ja/htmlcs-rules.ts index 620b2c76..02e28e7b 100644 --- a/kayle/lib/rules/ja/htmlcs-rules.ts +++ b/kayle/lib/rules/ja/htmlcs-rules.ts @@ -367,22 +367,6 @@ export const htmlcsRules = [ ruleType: "error", tags: ["WCAGA", "WCAGAA", "WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_1.1_1_1_H2.EG3", - description: - "テキストリンクと隣り合うリンク内の img 要素の alt 属性にテキストリンクの内容の複製を使用してはいけません。", - helpUrl: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, - { - ruleId: "Principle1.Guideline1_1.1_1_1_H2.EG4", - description: - "テキストリンクと隣り合うリンク内の img 要素の alt 属性が指定されていないか空になっています。テキストと画像のリンクを一つにまとめることを検討してください。", - helpUrl: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_1.1_1_1_H2.EG4", description: @@ -670,14 +654,6 @@ export const htmlcsRules = [ ruleType: "error", tags: ["WCAGA", "WCAGAA", "WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_3.1_3_1_H43,H63", - description: - "td 要素とそれに関連する th 要素の関係は定義されていません。 th 要素に scope 属性を使用するか、td 要素に headers 属性を使用してください。", - helpUrl: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_3.1_3_1_H43.HeadersRequired", description: @@ -701,22 +677,6 @@ export const htmlcsRules = [ ruleType: "error", tags: ["WCAGA", "WCAGAA", "WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_3.1_3_1_H43.MissingHeaderIds", - description: - "このテーブルに id 属性を含まない th 要素があります。これらのセルは、それらが td 要素の headers 属性によって参照されるように ID を含むべきです。", - helpUrl: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, - { - ruleId: "Principle1.Guideline1_3.1_3_1_H43.MissingHeadersAttrs", - description: - "このテーブルに headers 属性を含まない td 要素があります。各 headers 属性は、そのセルに関連付けられているすべての th 要素の ID を列挙する必要があります。", - helpUrl: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_3.1_3_1_H43.MissingHeadersAttrs", description: @@ -933,14 +893,6 @@ export const htmlcsRules = [ ruleType: "warning", tags: ["WCAGAA"], }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.Abs", - description: - "この要素は絶対位置に配置されているため、背景色を決定できません。テキストと背景の覆われた部分すべてのコントラスト比が少なくとも{{required}}:1であることを確認してください。", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, { ruleId: "Principle1.Guideline1_4.1_4_3_G145.Alpha", description: @@ -949,22 +901,6 @@ export const htmlcsRules = [ ruleType: "warning", tags: ["WCAGAA"], }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.Alpha", - description: - "この要素のテキストまたは背景は透明部分を含みます。テキストと背景のコントラスト比が少なくとも{{required}}:1であることを確認してください。", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.BgGradient", - description: - "この要素のテキストはグラデーションの上に配置されます。テキストとグラデーションのすべての覆われた部分のコントラスト比が少なくとも {{required}}:1 であることを確認してください。", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, { ruleId: "Principle1.Guideline1_4.1_4_3_G145.BgGradient", description: @@ -981,14 +917,6 @@ export const htmlcsRules = [ ruleType: "warning", tags: ["WCAGAA"], }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.BgImage", - description: - "この要素のテキストは背景画像に配置されます。テキストと画像の覆われている部分すべてのコントラスト比が少なくとも{{required}}:1であることを確認してください。", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, { ruleId: "Principle1.Guideline1_4.1_4_4_G142", description: @@ -1013,22 +941,6 @@ export const htmlcsRules = [ ruleType: "warning", tags: ["WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_4.1_4_6_G145.BgGradient", - description: - "この要素のテキストはグラデーションの上に配置されます。テキストとグラデーションのすべての覆われた部分のコントラスト比が少なくとも {{required}}:1 であることを確認してください。", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAAA"], - }, - { - ruleId: "Principle1.Guideline1_4.1_4_6_G17.Abs", - description: - "この要素は絶対位置に配置されているため、背景色を決定できません。テキストと背景の覆われた部分すべてのコントラスト比が少なくとも{{required}}:1であることを確認してください。", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_4.1_4_6_G17.Abs", description: @@ -1045,14 +957,6 @@ export const htmlcsRules = [ ruleType: "warning", tags: ["WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_4.1_4_6_G17.BgImage", - description: - "この要素のテキストは背景画像に配置されます。テキストと画像の覆われている部分すべてのコントラスト比が少なくとも{{required}}:1であることを確認してください。", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_4.1_4_7_G56", description: diff --git a/kayle/lib/rules/ko/htmlcs-rules.ts b/kayle/lib/rules/ko/htmlcs-rules.ts index eb0792c5..34c91314 100644 --- a/kayle/lib/rules/ko/htmlcs-rules.ts +++ b/kayle/lib/rules/ko/htmlcs-rules.ts @@ -367,22 +367,6 @@ export const htmlcsRules = [ ruleType: "error", tags: ["WCAGA", "WCAGAA", "WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_1.1_1_1_H2.EG3", - description: - "링크 내부의 Img 요소는 옆에 있는 텍스트 링크의 내용을 중복하는 alt 텍스트를 사용해서는 안됩니다.", - helpUrl: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, - { - ruleId: "Principle1.Guideline1_1.1_1_1_H2.EG4", - description: - "링크 옆에 링크 텍스트가 있는 경우 링크 내부의 Img 요소가 빈 alt 텍스트를 가지거나 누락되었습니다. 링크를 결합하는 것을 고려하세요.", - helpUrl: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_1.1_1_1_H2.EG4", description: @@ -670,14 +654,6 @@ export const htmlcsRules = [ ruleType: "error", tags: ["WCAGA", "WCAGAA", "WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_3.1_3_1_H43,H63", - description: - "td 요소와 관련된 th 요소 사이의 관계가 정의되지 않았습니다. th 요소에 범위 속성을 사용하거나 td 요소에 헤더 속성을 사용하세요.", - helpUrl: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_3.1_3_1_H43.HeadersRequired", description: @@ -701,22 +677,6 @@ export const htmlcsRules = [ ruleType: "error", tags: ["WCAGA", "WCAGAA", "WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_3.1_3_1_H43.MissingHeaderIds", - description: - "이 테이블의 모든 th 요소에 id 속성이 포함되어 있지 않습니다. 이 셀들은 td 요소의 헤더 속성에서 참조할 수 있도록 id를 포함해야 합니다.", - helpUrl: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, - { - ruleId: "Principle1.Guideline1_3.1_3_1_H43.MissingHeadersAttrs", - description: - "이 테이블의 모든 td 요소에 헤더 속성이 포함되어 있지 않습니다. 각 헤더 속성은 해당 셀과 관련된 모든 th 요소의 id를 나열해야 합니다.", - helpUrl: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_3.1_3_1_H43.MissingHeadersAttrs", description: @@ -1094,22 +1054,6 @@ export const htmlcsRules = [ ruleType: "warning", tags: ["WCAGAA"], }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.Abs", - description: - "이 요소는 절대 위치가 지정되어 있고 배경색을 결정할 수 없습니다. 텍스트와 모든 덮힌 배경 부분 사이의 대비 비율이 최소 {{required}}:1 이상인지 확인하십시오.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.Alpha", - description: - "이 요소의 텍스트 또는 배경에 투명도가 포함되어 있습니다. 텍스트와 배경 사이의 대비 비율이 최소 {{required}}:1 이상인지 확인하십시오.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, { ruleId: "Principle1.Guideline1_4.1_4_3_G145.Alpha", description: @@ -1126,22 +1070,6 @@ export const htmlcsRules = [ ruleType: "warning", tags: ["WCAGAA"], }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.BgGradient", - description: - "이 요소의 텍스트는 그라데이션 위에 배치됩니다. 텍스트와 모든 덮인 그라데이션 부분 사이의 대비 비율이 최소 {{required}}:1 이상인지 확인하십시오.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.BgImage", - description: - "이 요소의 텍스트는 배경 이미지 위에 배치됩니다. 텍스트와 모든 덮인 이미지 부분 사이의 대비 비율이 최소 {{required}}:1 이상인지 확인하십시오.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, { ruleId: "Principle1.Guideline1_4.1_4_3_G145.BgImage", description: @@ -1174,22 +1102,6 @@ export const htmlcsRules = [ ruleType: "warning", tags: ["WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_4.1_4_6_G17.Abs", - description: - "이 요소는 절대 위치가 지정되어 있고 배경색을 결정할 수 없습니다. 텍스트와 모든 덮힌 배경 부분 사이의 대비 비율이 최소 {{required}}:1 이상인지 확인하십시오.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAAA"], - }, - { - ruleId: "Principle1.Guideline1_4.1_4_6_G17.BgImage", - description: - "이 요소의 텍스트는 배경 이미지 위에 배치됩니다. 텍스트와 모든 덮인 이미지 부분 사이의 대비 비율이 최소 {{required}}:1 이상인지 확인하십시오.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_4.1_4_6_G17.BgImage", description: diff --git a/kayle/lib/rules/nl/htmlcs-rules.ts b/kayle/lib/rules/nl/htmlcs-rules.ts index e57f41bd..488345de 100644 --- a/kayle/lib/rules/nl/htmlcs-rules.ts +++ b/kayle/lib/rules/nl/htmlcs-rules.ts @@ -367,22 +367,6 @@ export const htmlcsRules = [ ruleType: "error", tags: ["WCAGA", "WCAGAA", "WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_1.1_1_1_H2.EG3", - description: - "Img element binnen een link mag geen alt tekst gebruiken die de tekstinhoud van de link ernaast herhaalt.", - helpUrl: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, - { - ruleId: "Principle1.Guideline1_1.1_1_1_H2.EG4", - description: - "Img element binnen een link heeft een lege of ontbrekende alt tekst terwijl een link net ernaast linktekst bevat. Overweeg beide links samen te voegen.", - helpUrl: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_1.1_1_1_H2.EG4", description: @@ -671,14 +655,6 @@ export const htmlcsRules = [ ruleType: "error", tags: ["WCAGA", "WCAGAA", "WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_3.1_3_1_H43,H63", - description: - "De relatie tussen td elementen en de ermee verband houdende th elementen is niet omschreven. Gebruik ofwel het scope attribuut op th elementen of het headers attribuut op td elementen.", - helpUrl: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_3.1_3_1_H43.HeadersRequired", description: @@ -702,22 +678,6 @@ export const htmlcsRules = [ ruleType: "error", tags: ["WCAGA", "WCAGAA", "WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_3.1_3_1_H43.MissingHeaderIds", - description: - "Niet alle th elementen in deze tabel hebben een id attribuut. Deze cellen zouden ids moeten bevatten zodat er kan naar verwezen worden in het headers attribuut van td elementen.", - helpUrl: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, - { - ruleId: "Principle1.Guideline1_3.1_3_1_H43.MissingHeadersAttrs", - description: - "Niet alle td elementen in deze tabel hebben een headers attribuut. Elk headers attribuut zou een lijst moeten bevatten van de ids van alle th elementen die verband houden met deze cel", - helpUrl: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_3.1_3_1_H43.MissingHeadersAttrs", description: @@ -1094,14 +1054,6 @@ export const htmlcsRules = [ ruleType: "warning", tags: ["WCAGAA"], }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.Abs", - description: - "Dit element is absoluut gepositioneerd en de achtergrondkleur kan niet bepaald worden. Zorg ervoor dat de contrastverhouding tussen de tekst en alle bedekte delen van de achtergond minstens {{required}}:1 is.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, { ruleId: "Principle1.Guideline1_4.1_4_3_G145.Alpha", description: @@ -1110,22 +1062,6 @@ export const htmlcsRules = [ ruleType: "warning", tags: ["WCAGAA"], }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.Alpha", - description: - "De tekst of achtergrond van dit element bevat transparantie. Zorg ervoor dat de contrastverhouding tussen de tekst en de achtergond minstens {{required}}:1 is.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.BgGradient", - description: - "De tekst van dit element is op een achtergrondverloop geplaatst. Zorg ervoor dat de contrastverhouding tussen de tekst en alle bedekte delen van het achtergrondverloop minimaal {{vereist}}:1 is.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, { ruleId: "Principle1.Guideline1_4.1_4_3_G145.BgGradient", description: @@ -1142,14 +1078,6 @@ export const htmlcsRules = [ ruleType: "warning", tags: ["WCAGAA"], }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.BgImage", - description: - "De tekst van dit element werd geplaatst op een achtergrondafbeelding. Zorg ervoor dat de contrastverhouding tussen de tekst en alle bedekte delen van de achtergrondafbeelding minstens {{required}}:1 is.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, { ruleId: "Principle1.Guideline1_4.1_4_4_G142", description: @@ -1174,22 +1102,6 @@ export const htmlcsRules = [ ruleType: "warning", tags: ["WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_4.1_4_6_G145.BgGradient", - description: - "De tekst van dit element is op een achtergrondverloop geplaatst. Zorg ervoor dat de contrastverhouding tussen de tekst en alle bedekte delen van het achtergrondverloop minimaal {{vereist}}:1 is.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAAA"], - }, - { - ruleId: "Principle1.Guideline1_4.1_4_6_G17.Abs", - description: - "Dit element is absoluut gepositioneerd en de achtergrondkleur kan niet bepaald worden. Zorg ervoor dat de contrastverhouding tussen de tekst en alle bedekte delen van de achtergond minstens {{required}}:1 is.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_4.1_4_6_G17.Abs", description: @@ -1206,14 +1118,6 @@ export const htmlcsRules = [ ruleType: "warning", tags: ["WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_4.1_4_6_G17.BgImage", - description: - "De tekst van dit element werd geplaatst op een achtergrondafbeelding. Zorg ervoor dat de contrastverhouding tussen de tekst en alle bedekte delen van de achtergrondafbeelding minstens {{required}}:1 is.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_4.1_4_7_G56", description: diff --git a/kayle/lib/rules/no_NB/htmlcs-rules.ts b/kayle/lib/rules/no_NB/htmlcs-rules.ts index 0cbac135..16e80759 100644 --- a/kayle/lib/rules/no_NB/htmlcs-rules.ts +++ b/kayle/lib/rules/no_NB/htmlcs-rules.ts @@ -367,22 +367,6 @@ export const htmlcsRules = [ ruleType: "error", tags: ["WCAGA", "WCAGAA", "WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_1.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: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, - { - ruleId: "Principle1.Guideline1_1.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: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_1.1_1_1_H2.EG4", description: @@ -671,14 +655,6 @@ export const htmlcsRules = [ ruleType: "error", tags: ["WCAGA", "WCAGAA", "WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_3.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: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_3.1_3_1_H43.HeadersRequired", description: @@ -702,22 +678,6 @@ export const htmlcsRules = [ ruleType: "error", tags: ["WCAGA", "WCAGAA", "WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_3.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: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, - { - ruleId: "Principle1.Guideline1_3.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: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_3.1_3_1_H43.MissingHeadersAttrs", description: @@ -1095,22 +1055,6 @@ export const htmlcsRules = [ ruleType: "warning", tags: ["WCAGAA"], }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.Abs", - description: - "This element is absolutely positioned and the background color can not be determined. Ensure the contrast ratio between the text and all covered parts of the background are at least {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.Alpha", - description: - "This element's text or background contains transparency. Ensure the contrast ratio between the text and background are at least {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, { ruleId: "Principle1.Guideline1_4.1_4_3_G145.Alpha", description: @@ -1127,22 +1071,6 @@ export const htmlcsRules = [ ruleType: "warning", tags: ["WCAGAA"], }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.BgGradient", - description: - "This element's text is placed on a gradient. Ensure the contrast ratio between the text and all covered parts of the gradient are at least {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.BgImage", - description: - "This element's text is placed on a background image. Ensure the contrast ratio between the text and all covered parts of the image are at least {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, { ruleId: "Principle1.Guideline1_4.1_4_3_G145.BgImage", description: @@ -1175,22 +1103,6 @@ export const htmlcsRules = [ ruleType: "warning", tags: ["WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_4.1_4_6_G17.Abs", - description: - "This element is absolutely positioned and the background color can not be determined. Ensure the contrast ratio between the text and all covered parts of the background are at least {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAAA"], - }, - { - ruleId: "Principle1.Guideline1_4.1_4_6_G17.BgImage", - description: - "This element's text is placed on a background image. Ensure the contrast ratio between the text and all covered parts of the image are at least {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_4.1_4_6_G17.BgImage", description: diff --git a/kayle/lib/rules/pl/htmlcs-rules.ts b/kayle/lib/rules/pl/htmlcs-rules.ts index db3e84b2..ef188f78 100644 --- a/kayle/lib/rules/pl/htmlcs-rules.ts +++ b/kayle/lib/rules/pl/htmlcs-rules.ts @@ -367,22 +367,6 @@ export const htmlcsRules = [ ruleType: "error", tags: ["WCAGA", "WCAGAA", "WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_1.1_1_1_H2.EG3", - description: - "Element znajdujący się wewnątrz linku nie może mieć opisu alternatywnego tej samej treści, co tekst linku znajdujący się w jego sąsiedztwie.", - helpUrl: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, - { - ruleId: "Principle1.Guideline1_1.1_1_1_H2.EG4", - description: - "Element znajdujący się wewnątrz linku nie ma atrybutu alt lub alt jest pusty. Ponieważ w sąsiedztwie znajduje się tekst linku, zaleca się połączenie tych elementów w jedno łącze ze wspólnym opisem.", - helpUrl: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_1.1_1_1_H2.EG4", description: @@ -671,14 +655,6 @@ export const htmlcsRules = [ ruleType: "error", tags: ["WCAGA", "WCAGAA", "WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_3.1_3_1_H43,H63", - description: - 'Komórki nie mają ustalonej relacji z komórkami nagłówkowymi . Należy zdefiniować atryb "scope" dla lub "headers" dla .', - helpUrl: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_3.1_3_1_H43.HeadersRequired", description: @@ -702,22 +678,6 @@ export const htmlcsRules = [ ruleType: "error", tags: ["WCAGA", "WCAGAA", "WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_3.1_3_1_H43.MissingHeaderIds", - description: - 'Nie wszystkie nagłówki th w tej tabeli posiadają atrybut "id" i nie będzie się można do nich odwołać za pomocą atrybutu "headers" w znacznikach .', - helpUrl: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, - { - ruleId: "Principle1.Guideline1_3.1_3_1_H43.MissingHeadersAttrs", - description: - "Nie wszystkie komórki w tej tabeli posiadają atrybut headers. W atrybucie headers powinny znajdować się identyfikatory powiązanych nagłówków.", - helpUrl: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_3.1_3_1_H43.MissingHeadersAttrs", description: @@ -1095,14 +1055,6 @@ export const htmlcsRules = [ ruleType: "warning", tags: ["WCAGAA"], }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.Abs", - description: - "Ten element jest pozycjonowany absolutnie i nie jest możliwe zweryfikowanie jego kontrastu. Sprawdź, czy kontrast jest na wystarczającym poziomie: {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, { ruleId: "Principle1.Guideline1_4.1_4_3_G145.Alpha", description: @@ -1111,22 +1063,6 @@ export const htmlcsRules = [ ruleType: "warning", tags: ["WCAGAA"], }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.Alpha", - description: - "Tekst lub tło tego elementu jest przezroczyste. Upewnij się, że współczynnik kontrastu między tekstem a tłem wynosi co najmniej {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.BgGradient", - description: - "Tekst tego elementu jest umieszczony na gradiencie. Upewnij się, że współczynnik kontrastu między tekstem a wszystkimi zakrytymi częściami gradientu wynosi co najmniej {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, { ruleId: "Principle1.Guideline1_4.1_4_3_G145.BgGradient", description: @@ -1143,14 +1079,6 @@ export const htmlcsRules = [ ruleType: "warning", tags: ["WCAGAA"], }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.BgImage", - description: - "Tekst elementu wyświetlany jest na obrazku. Należy upewnić się, że stosunek kontrastu tekstu do tła wynosi co najmniej {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, { ruleId: "Principle1.Guideline1_4.1_4_4_G142", description: @@ -1175,22 +1103,6 @@ export const htmlcsRules = [ ruleType: "warning", tags: ["WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_4.1_4_6_G145.BgGradient", - description: - "Tekst tego elementu jest umieszczony na gradiencie. Upewnij się, że współczynnik kontrastu między tekstem a wszystkimi zakrytymi częściami gradientu wynosi co najmniej {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAAA"], - }, - { - ruleId: "Principle1.Guideline1_4.1_4_6_G17.Abs", - description: - "Ten element jest pozycjonowany absolutnie i nie jest możliwe zweryfikowanie jego kontrastu. Sprawdź samodzielnie czy kontrast jest na wystarczającym poziomie: {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_4.1_4_6_G17.Abs", description: @@ -1207,14 +1119,6 @@ export const htmlcsRules = [ ruleType: "warning", tags: ["WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_4.1_4_6_G17.BgImage", - description: - "Tekst elementu wyświetlany jest na obrazku. Należy upewnić się, że stosunek kontrastu tekstu do tła wynosi conajmniej {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_4.1_4_7_G56", description: diff --git a/kayle/lib/rules/pt_BR/htmlcs-rules.ts b/kayle/lib/rules/pt_BR/htmlcs-rules.ts index 0cbac135..16e80759 100644 --- a/kayle/lib/rules/pt_BR/htmlcs-rules.ts +++ b/kayle/lib/rules/pt_BR/htmlcs-rules.ts @@ -367,22 +367,6 @@ export const htmlcsRules = [ ruleType: "error", tags: ["WCAGA", "WCAGAA", "WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_1.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: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, - { - ruleId: "Principle1.Guideline1_1.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: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_1.1_1_1_H2.EG4", description: @@ -671,14 +655,6 @@ export const htmlcsRules = [ ruleType: "error", tags: ["WCAGA", "WCAGAA", "WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_3.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: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_3.1_3_1_H43.HeadersRequired", description: @@ -702,22 +678,6 @@ export const htmlcsRules = [ ruleType: "error", tags: ["WCAGA", "WCAGAA", "WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_3.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: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, - { - ruleId: "Principle1.Guideline1_3.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: [], - ruleType: "error", - tags: ["WCAGA", "WCAGAA", "WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_3.1_3_1_H43.MissingHeadersAttrs", description: @@ -1095,22 +1055,6 @@ export const htmlcsRules = [ ruleType: "warning", tags: ["WCAGAA"], }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.Abs", - description: - "This element is absolutely positioned and the background color can not be determined. Ensure the contrast ratio between the text and all covered parts of the background are at least {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.Alpha", - description: - "This element's text or background contains transparency. Ensure the contrast ratio between the text and background are at least {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, { ruleId: "Principle1.Guideline1_4.1_4_3_G145.Alpha", description: @@ -1127,22 +1071,6 @@ export const htmlcsRules = [ ruleType: "warning", tags: ["WCAGAA"], }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.BgGradient", - description: - "This element's text is placed on a gradient. Ensure the contrast ratio between the text and all covered parts of the gradient are at least {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, - { - ruleId: "Principle1.Guideline1_4.1_4_3_G145.BgImage", - description: - "This element's text is placed on a background image. Ensure the contrast ratio between the text and all covered parts of the image are at least {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAA"], - }, { ruleId: "Principle1.Guideline1_4.1_4_3_G145.BgImage", description: @@ -1175,22 +1103,6 @@ export const htmlcsRules = [ ruleType: "warning", tags: ["WCAGAAA"], }, - { - ruleId: "Principle1.Guideline1_4.1_4_6_G17.Abs", - description: - "This element is absolutely positioned and the background color can not be determined. Ensure the contrast ratio between the text and all covered parts of the background are at least {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAAA"], - }, - { - ruleId: "Principle1.Guideline1_4.1_4_6_G17.BgImage", - description: - "This element's text is placed on a background image. Ensure the contrast ratio between the text and all covered parts of the image are at least {{required}}:1.", - helpUrl: [], - ruleType: "warning", - tags: ["WCAGAAA"], - }, { ruleId: "Principle1.Guideline1_4.1_4_6_G17.BgImage", description: diff --git a/kayle/lib/runner-js.ts b/kayle/lib/runner-js.ts index b2efdb1d..7ac7a09e 100644 --- a/kayle/lib/runner-js.ts +++ b/kayle/lib/runner-js.ts @@ -78,7 +78,7 @@ const injectRunner = (runner: string, path: string, lang: string) => { */ const getRunner = ( language: string, - runner: keyof typeof runnersJavascript, + runner: keyof typeof runnersJavascript ) => { // if langauge exist get the runner type if (language) { diff --git a/kayle/lib/runner.ts b/kayle/lib/runner.ts index caffc9e7..f83955de 100644 --- a/kayle/lib/runner.ts +++ b/kayle/lib/runner.ts @@ -124,7 +124,7 @@ if (element.innerHTML.length > 31) { outerHTML = outerHTML.replace( element.innerHTML, - `${element.innerHTML.substring(0, 32)}...`, + `${element.innerHTML.substring(0, 32)}...` ); } @@ -166,7 +166,7 @@ const elementSelector = getElementSelector( element.parentNode as HTMLElement, - true, + true ); return `${ @@ -268,7 +268,7 @@ acc, tracker, meta, - missingAltIndexs: number[], + missingAltIndexs: number[] ) => { for (const is of issues) { if (validateIssue(is)) { @@ -344,7 +344,7 @@ } return []; }); - }), + }) ); // meta information keep records shaped to numbers diff --git a/kayle/lib/runners/axe.ts b/kayle/lib/runners/axe.ts index 458a37e0..20ffa0b6 100644 --- a/kayle/lib/runners/axe.ts +++ b/kayle/lib/runners/axe.ts @@ -10,7 +10,7 @@ const runAxeAudit = async (options) => { axeOptions.rules = a11yRulesToAxe( Array.isArray(options.rules) ? options.rules : [], - Array.isArray(options.ignore) ? options.ignore : [], + Array.isArray(options.ignore) ? options.ignore : [] ); // @ts-ignore todo: fix origin crashing test in axe-core when set direct html @@ -25,7 +25,7 @@ const runAxeAudit = async (options) => { (options.rootElement && window.document.querySelector(options.rootElement)) || window.document, - axeOptions, + axeOptions ); const issues = []; diff --git a/kayle/lib/runners/htmlcs.ts b/kayle/lib/runners/htmlcs.ts index 21f1192b..cde2d3e8 100644 --- a/kayle/lib/runners/htmlcs.ts +++ b/kayle/lib/runners/htmlcs.ts @@ -49,7 +49,7 @@ const run = async (options) => { resolve(window.HTMLCS.messages); }, (error) => reject(error), - options.language, + options.language ); }); }; diff --git a/kayle/lib/utils/adblock.ts b/kayle/lib/utils/adblock.ts index 965cd4bc..edfb194b 100644 --- a/kayle/lib/utils/adblock.ts +++ b/kayle/lib/utils/adblock.ts @@ -63,14 +63,14 @@ const engine: unknown | AdCheck = serializedArrayBuffer.byteLength / 1024 / 1024 - ).toFixed(2)} MB`, + ).toFixed(2)} MB` ); return engine; } catch (_) { // error for now without exiting since feature is opt in console.error( - "Error: adblock-rs installation missing! Run `npm i adblock-rs` or `yarn add adblock-rs` to start with the adblock engine.", + "Error: adblock-rs installation missing! Run `npm i adblock-rs` or `yarn add adblock-rs` to start with the adblock engine." ); } })() diff --git a/kayle/lib/utils/cdp-blocking.ts b/kayle/lib/utils/cdp-blocking.ts index 067caa65..ef1e906b 100644 --- a/kayle/lib/utils/cdp-blocking.ts +++ b/kayle/lib/utils/cdp-blocking.ts @@ -9,7 +9,7 @@ const blockedResourceUrls = Object.keys(skippedResources); export const blockFilter = async ( e: any, client: CDPSession, - o: Partial, + o: Partial ) => { const resourceType = e.resourceType; @@ -51,7 +51,7 @@ export const blockFilter = async ( // perform native cdp blocking export const sendCDPPageConfigurationEnable = async ( client: CDPSession, - o: Partial, + o: Partial ) => { if (!client || (client && !client.on)) { return; @@ -102,7 +102,7 @@ export const sendCDPPageConfigurationReset = async ( client: CDPSession, o: Partial, allowImages?: boolean, - all?: boolean, // reset all CDP + all?: boolean // reset all CDP ) => { if (!client || (client && !client.on)) { return; diff --git a/kayle/lib/utils/go-to-page.ts b/kayle/lib/utils/go-to-page.ts index b61a7ead..ddec5383 100644 --- a/kayle/lib/utils/go-to-page.ts +++ b/kayle/lib/utils/go-to-page.ts @@ -26,7 +26,7 @@ export const setCDPIntercept = async (o: Partial) => { // block expensive resources export const setNetworkInterception = async ( - o: Partial, + o: Partial ): Promise => await setCDPIntercept(o); /** @@ -36,7 +36,7 @@ export const setNetworkInterception = async ( * @returns {Promise} Returns if the page was navigated to successfully. */ export const goToPage = async ( - o: Partial, + o: Partial ): Promise => { await setCDPIntercept(o); diff --git a/kayle/lib/utils/resource-ignore.ts b/kayle/lib/utils/resource-ignore.ts index 5d3e4a53..9dad3c89 100644 --- a/kayle/lib/utils/resource-ignore.ts +++ b/kayle/lib/utils/resource-ignore.ts @@ -44,7 +44,7 @@ const blockedResourcePatterns = Array.from(blockedResourceTypesCDP).map( (resource) => ({ resourceType: resource, requestStage: "Request", - }), + }) ); export { blockedResourceTypesCDP, blockedResourcePatterns }; diff --git a/kayle/lib/wasm/extract.ts b/kayle/lib/wasm/extract.ts index 08c97a46..3967ba84 100644 --- a/kayle/lib/wasm/extract.ts +++ b/kayle/lib/wasm/extract.ts @@ -12,6 +12,6 @@ export async function extractLinks(config: RunnerConfig, target?: string) { const domain = typeof target === "string" ? target : config.page.url(); return get_document_links( htmlContent, - domain !== "about:blank" ? domain : "", + domain !== "about:blank" ? domain : "" ); } diff --git a/kayle/lib/watcher.ts b/kayle/lib/watcher.ts index cc0124ce..73ac235c 100644 --- a/kayle/lib/watcher.ts +++ b/kayle/lib/watcher.ts @@ -29,7 +29,7 @@ Watcher.prototype.watch = function (timeout: number): Promise { }, issues: [], }), - timeout, + timeout ); }); }; diff --git a/kayle/package.json b/kayle/package.json index c964d2e8..fc305789 100644 --- a/kayle/package.json +++ b/kayle/package.json @@ -1,6 +1,6 @@ { "name": "kayle", - "version": "0.8.37", + "version": "0.8.41", "description": "Extremely fast and accurate accessibility engine built for any headless tool like playwright or puppeteer.", "main": "./build/index.js", "keywords": [ diff --git a/kayle/tests/basic-axe-playwright.spec.ts b/kayle/tests/basic-axe-playwright.spec.ts index 7cf107c2..45953fe9 100644 --- a/kayle/tests/basic-axe-playwright.spec.ts +++ b/kayle/tests/basic-axe-playwright.spec.ts @@ -36,7 +36,7 @@ test("fast_axecore audit drakeMock", async ({ page, browser }, testInfo) => { writeFileSync( testInfo.outputPath("axe-core.json"), JSON.stringify(results, null, 2), - "utf8", + "utf8" ); writeFileSync( @@ -51,8 +51,8 @@ test("fast_axecore audit drakeMock", async ({ page, browser }, testInfo) => { runner: ["fast_axecore"], }, null, - 2, + 2 ), - "utf8", + "utf8" ); }); diff --git a/kayle/tests/basic-htmlcs-playwright.spec.ts b/kayle/tests/basic-htmlcs-playwright.spec.ts index 0c315011..75c9e6b7 100644 --- a/kayle/tests/basic-htmlcs-playwright.spec.ts +++ b/kayle/tests/basic-htmlcs-playwright.spec.ts @@ -35,7 +35,7 @@ test("fast_htmlcs audit drakeMock", async ({ page, browser }, testInfo) => { writeFileSync( testInfo.outputPath("htmlcs.json"), JSON.stringify(results, null, 2), - "utf8", + "utf8" ); writeFileSync( @@ -50,8 +50,8 @@ test("fast_htmlcs audit drakeMock", async ({ page, browser }, testInfo) => { runner: ["fast_htmlcs"], }, null, - 2, + 2 ), - "utf8", + "utf8" ); }); diff --git a/kayle/tests/basic-playwright.spec.ts b/kayle/tests/basic-playwright.spec.ts index b2b94f2a..48c1d65f 100644 --- a/kayle/tests/basic-playwright.spec.ts +++ b/kayle/tests/basic-playwright.spec.ts @@ -42,7 +42,7 @@ test("fast_htmlcs and fast_axecore audit drakeMock", async ({ writeFileSync( testInfo.outputPath("htmlcs.json"), JSON.stringify(results, null, 2), - "utf8", + "utf8" ); writeFileSync( @@ -57,8 +57,8 @@ test("fast_htmlcs and fast_axecore audit drakeMock", async ({ runner: ["fast_htmlcs", "fast_axecore"], }, null, - 2, + 2 ), - "utf8", + "utf8" ); }); diff --git a/kayle/tests/clips-playwright.spec.ts b/kayle/tests/clips-playwright.spec.ts index 834a76d9..03b391e9 100644 --- a/kayle/tests/clips-playwright.spec.ts +++ b/kayle/tests/clips-playwright.spec.ts @@ -44,7 +44,7 @@ test("fast_axecore audit drakeMock", async ({ page, browser }, testInfo) => { writeFileSync( testInfo.outputPath("axe-core.json"), JSON.stringify(results, null, 2), - "utf8", + "utf8" ); writeFileSync( @@ -59,8 +59,8 @@ test("fast_axecore audit drakeMock", async ({ page, browser }, testInfo) => { runner: ["fast_axecore"], }, null, - 2, + 2 ), - "utf8", + "utf8" ); }); diff --git a/kayle/tests/extend-runner.ts b/kayle/tests/extend-runner.ts index c28424fc..618f8613 100644 --- a/kayle/tests/extend-runner.ts +++ b/kayle/tests/extend-runner.ts @@ -55,7 +55,7 @@ import { performance } from "perf_hooks"; HTMLCS_WCAG2AAA.sniffs.push("Principle4.Guideline4_1.4_1_4"); // register the new sniff rule to run HTMLCS.registerSniff("WCAG2AAA", "Principle4.Guideline4_1.4_1_4"); - `.trimStart(), + `.trimStart() ); const { issues, pageUrl, documentTitle, meta, automateable } = await kayle({ diff --git a/kayle/tests/extension.ts b/kayle/tests/extension.ts index 011927e5..284e82b4 100644 --- a/kayle/tests/extension.ts +++ b/kayle/tests/extension.ts @@ -35,7 +35,7 @@ import { performance } from "perf_hooks"; origin: "https://jeffmendez.com", // origin is the fake url in place of the raw content browserExtension: true, // enable the extension }, - true, + true ); const nextTime = performance.now() - startTime; diff --git a/kayle/tests/i18n.ts b/kayle/tests/i18n.ts index e2509883..caa11c47 100644 --- a/kayle/tests/i18n.ts +++ b/kayle/tests/i18n.ts @@ -29,7 +29,7 @@ import { performance } from "perf_hooks"; assert(typeof documentTitle === "string"); assert( issues[issues.length - 1].message === - "この要素のテキストまたは背景は透明部分を含みます。テキストと背景のコントラスト比が少なくとも4.5:1であることを確認してください。", + "この要素のテキストまたは背景は透明部分を含みます。テキストと背景のコントラスト比が少なくとも4.5:1であることを確認してください。" ); await browser.close(); })(); diff --git a/kayle/tests/innate-playwright.spec.ts b/kayle/tests/innate-playwright.spec.ts index 1585b4d0..c49ead41 100644 --- a/kayle/tests/innate-playwright.spec.ts +++ b/kayle/tests/innate-playwright.spec.ts @@ -21,7 +21,7 @@ test("kayle_innate, fast_htmlcs and fast_axecore audit drakeMock profiling compa }); const mock = html.replace( "Drake Industries | Custom, Durable, High-Quality Labels, Asset Tags and Custom Server Bezels", - "", + "" ); const startTime = performance.now(); await audit(mock, css, false); diff --git a/kayle/tests/innate.ts b/kayle/tests/innate.ts index 696648d4..962d10e9 100644 --- a/kayle/tests/innate.ts +++ b/kayle/tests/innate.ts @@ -13,14 +13,14 @@ import { performance } from "perf_hooks"; const mock = drakeMock .replace( "Drake Industries | Custom, Durable, High-Quality Labels, Asset Tags and Custom Server Bezels", - "", + "" ) .replace( ``, `
-
`, + ` ); const startTime = performance.now(); diff --git a/kayle/tests/wasm.ts b/kayle/tests/wasm.ts index 26f0631c..e05e21e8 100644 --- a/kayle/tests/wasm.ts +++ b/kayle/tests/wasm.ts @@ -73,7 +73,7 @@ import { drakeMock } from "./mocks/html-mock"; "https://www.drake.com/vinyl-pvc", "https://www.drake.com/wide-format-digital-printing", "https://www.drake.com/wide-narrow-format-digital-cutting", - ].sort(), + ].sort() ); await browser.close(); })();