ultra11y 5.55.3 → 5.55.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/.opencode/plugins/ultra11y.js +1 -1
- package/dist/cypress.mjs +10 -0
- package/dist/playwright.mjs +10 -0
- package/docker/runner.mjs +1 -1
- package/package.json +1 -1
- package/scripts/ultra11y.mjs +11 -1
- package/skills/review-a11y/SKILL.md +1 -1
- package/skills/review-a11y/scripts/ultra11y.mjs +11 -1
- package/skills/ultra11y/SKILL.md +1 -1
- package/skills/ultra11y/scripts/ultra11y.mjs +11 -1
- package/skills/ultra11y/templates/gitlab-ci.yml +1 -1
- package/src/collector.ts +10 -0
- package/src/types.ts +1 -1
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"name": "ultra11y",
|
|
11
11
|
"source": "./",
|
|
12
12
|
"description": "RGAA 4.1.2 accessibility audits on a WCAG 2.2 AA core: automatic review before commit, push and pull request, plus dated, evidenced Markdown, HTML and per-page conformance reports in Claude Code.",
|
|
13
|
-
"version": "5.55.
|
|
13
|
+
"version": "5.55.4",
|
|
14
14
|
"author": { "name": "maxgfr" },
|
|
15
15
|
"homepage": "https://github.com/SocialGouv/ultra11y",
|
|
16
16
|
"repository": "https://github.com/SocialGouv/ultra11y",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ultra11y",
|
|
3
3
|
"description": "RGAA 4.1.2 accessibility audits, the French State's standard, on a WCAG 2.2 AA core: automatic review before commit, push and pull request, plus dated, evidenced Markdown, HTML and per-page conformance reports. Never declares conforming what it has not verified.",
|
|
4
|
-
"version": "5.55.
|
|
4
|
+
"version": "5.55.4",
|
|
5
5
|
"author": { "name": "maxgfr" },
|
|
6
6
|
"homepage": "https://github.com/SocialGouv/ultra11y",
|
|
7
7
|
"repository": "https://github.com/SocialGouv/ultra11y",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ultra11y",
|
|
3
3
|
"description": "RGAA 4.1.2 accessibility audits, the French State's standard, on a WCAG 2.2 AA core: automatic review before commit, push and pull request, plus dated, evidenced Markdown, HTML and per-page conformance reports. Never declares conforming what it has not verified.",
|
|
4
|
-
"version": "5.55.
|
|
4
|
+
"version": "5.55.4",
|
|
5
5
|
"author": { "name": "maxgfr", "url": "https://github.com/maxgfr" },
|
|
6
6
|
"homepage": "https://github.com/SocialGouv/ultra11y",
|
|
7
7
|
"repository": "https://github.com/SocialGouv/ultra11y",
|
|
@@ -27,7 +27,7 @@ import { fileURLToPath } from "node:url";
|
|
|
27
27
|
// Ownership marker: `ultra11y install --opencode` refuses to overwrite a plugin file that
|
|
28
28
|
// does not carry it, so a user's own ultra11y.js is never clobbered.
|
|
29
29
|
const ULTRA11Y_OPENCODE_PLUGIN = "ULTRA11Y_OPENCODE_PLUGIN";
|
|
30
|
-
const ULTRA11Y_PLUGIN_VERSION = "5.55.
|
|
30
|
+
const ULTRA11Y_PLUGIN_VERSION = "5.55.4";
|
|
31
31
|
|
|
32
32
|
const here = dirname(fileURLToPath(import.meta.url));
|
|
33
33
|
|
package/dist/cypress.mjs
CHANGED
|
@@ -59,6 +59,16 @@ var COLLECT_SNAPSHOT = `(() => {
|
|
|
59
59
|
els.push(child);
|
|
60
60
|
const name = child.localName;
|
|
61
61
|
if (RAW_TEXT.has(name)) continue;
|
|
62
|
+
// With scripting on, a <noscript>'s content is raw TEXT to the browser, while the reparse
|
|
63
|
+
// reads it as elements (#112). Parse that text with the page's own parser and count what
|
|
64
|
+
// it yields, in place, so every later ordinal still lines up. The inert parsed nodes have
|
|
65
|
+
// no computed style and an empty box, which the rules read as \xAB nothing measured \xBB.
|
|
66
|
+
if (name === 'noscript' && child.children.length === 0 && (child.textContent || '').includes('<')) {
|
|
67
|
+
const parsed = document.createElement('template');
|
|
68
|
+
parsed.innerHTML = child.textContent || '';
|
|
69
|
+
walkElements(parsed.content);
|
|
70
|
+
continue;
|
|
71
|
+
}
|
|
62
72
|
walkElements(name === 'template' && child.content ? child.content : child);
|
|
63
73
|
}
|
|
64
74
|
};
|
package/dist/playwright.mjs
CHANGED
|
@@ -64,6 +64,16 @@ var COLLECT_SNAPSHOT = `(() => {
|
|
|
64
64
|
els.push(child);
|
|
65
65
|
const name = child.localName;
|
|
66
66
|
if (RAW_TEXT.has(name)) continue;
|
|
67
|
+
// With scripting on, a <noscript>'s content is raw TEXT to the browser, while the reparse
|
|
68
|
+
// reads it as elements (#112). Parse that text with the page's own parser and count what
|
|
69
|
+
// it yields, in place, so every later ordinal still lines up. The inert parsed nodes have
|
|
70
|
+
// no computed style and an empty box, which the rules read as \xAB nothing measured \xBB.
|
|
71
|
+
if (name === 'noscript' && child.children.length === 0 && (child.textContent || '').includes('<')) {
|
|
72
|
+
const parsed = document.createElement('template');
|
|
73
|
+
parsed.innerHTML = child.textContent || '';
|
|
74
|
+
walkElements(parsed.content);
|
|
75
|
+
continue;
|
|
76
|
+
}
|
|
67
77
|
walkElements(name === 'template' && child.content ? child.content : child);
|
|
68
78
|
}
|
|
69
79
|
};
|
package/docker/runner.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import axe from "axe-core";
|
|
|
3
3
|
const target = process.argv[2];
|
|
4
4
|
const isFile = target.startsWith("/work/");
|
|
5
5
|
const SNAPSHOT = process.env.ULTRA11Y_SNAPSHOT !== "0";
|
|
6
|
-
const COLLECT = "(() => {\n const PROPS = [\"color\",\"backgroundColor\",\"backgroundImage\",\"fontSize\",\"fontWeight\",\"fontStyle\",\"textDecorationLine\",\"textTransform\",\"lineHeight\",\"letterSpacing\",\"wordSpacing\",\"whiteSpace\",\"display\",\"visibility\",\"opacity\",\"position\",\"overflowX\",\"overflowY\",\"outlineStyle\",\"outlineWidth\",\"outlineColor\",\"borderTopStyle\",\"borderRightStyle\",\"borderBottomStyle\",\"borderLeftStyle\",\"borderTopWidth\",\"borderRightWidth\",\"borderBottomWidth\",\"borderLeftWidth\",\"borderTopColor\",\"borderRightColor\",\"borderBottomColor\",\"borderLeftColor\",\"boxShadow\",\"cursor\"];\n const MAX = 5000;\n // The ordinal is a JOIN KEY against parseHtml(dom), so the walk must enumerate elements\n // exactly as a reparse of the serialisation below will (#101). querySelectorAll('*') did not:\n // - an element appended INSIDE a raw-text element (Next's dev overlay puts <nextjs-portal>\n // in a <script>) is serialised as that element's raw text, and a reparse reads text —\n // one ordinal too many, and every digest refused from there on;\n // - <template> contents are serialised and reparsed as elements, but live in\n // template.content, which querySelectorAll never traverses — one ordinal too few.\n // Pre-order, children of the raw-text elements HTML parsers (htmlparser2 included) treat as\n // text skipped, template.content descended.\n const RAW_TEXT = new Set(['script', 'style', 'title', 'textarea', 'xmp', 'iframe', 'noembed', 'noframes']);\n const els = [];\n const walkElements = (parent) => {\n for (const child of parent.children) {\n els.push(child);\n const name = child.localName;\n if (RAW_TEXT.has(name)) continue;\n walkElements(name === 'template' && child.content ? child.content : child);\n }\n };\n walkElements(document);\n const styles = [];\n const boxes = [];\n const n = Math.min(els.length, MAX);\n for (let i = 0; i < n; i++) {\n const el = els[i];\n const tag = el.tagName.toLowerCase();\n const cs = getComputedStyle(el);\n const css = {};\n for (const p of PROPS) {\n const v = cs[p];\n if (v !== undefined && v !== null && v !== '') css[p] = String(v);\n }\n styles.push({ i: i, tag: tag, css: css });\n const r = el.getBoundingClientRect();\n boxes.push({ i: i, tag: tag, x: Math.round(r.left), y: Math.round(r.top), w: Math.round(r.width), h: Math.round(r.height) });\n }\n // The page's own stylesheets. Some criteria are properties of the STYLESHEET rather than of\n // any element's computed style — focus styling removed with no replacement (2.4.7), a media\n // query that locks the orientation (1.3.4) — and this is the only place they exist.\n // A cross-origin sheet throws on .cssRules: COUNT those instead of ignoring them, so a rule\n // reading this digest can tell \"nothing there\" apart from \"I could not look\".\n // The cap is on the ORDINARY pool only, and the traversal never stops early.\n //\n // It used to return the moment the pool filled, which abandoned every remaining sheet —\n // and on a design-system app the pool fills long before the end. Measured on a real capture\n // of 38 pages: all 38 came back truncated, so rendered-focus-not-visible declined on every\n // one of them and 2.4.7 could never be decided by any number of scans. The rule was right to\n // decline (a :focus rule might have been among the dropped ones); the collector was wrong to\n // make that unavoidable.\n //\n // So the rules a rendered criterion actually READS — :focus styling, orientation locks,\n // pinned positioning, animation — are kept whatever the pool is doing, and truncated now\n // means \"some ordinary rule was dropped\", which is a much weaker statement. A rule can then\n // ask for what it needs instead of refusing on a cap that never concerned it.\n const cssRules = [];\n let unreadable = 0;\n let dropped = 0;\n const MAXR = 4000;\n const camel = (p) => p.replace(/-([a-z])/g, (_, c) => c.toUpperCase());\n const KEEP_SELECTOR = /:focus|:target|:active/i;\n const KEEP_PROP = /^(?:outline|position|animation|transition|transform)/;\n const walk = (list, media) => {\n for (const r of list) {\n if (typeof r.selectorText === 'string' && r.style) {\n const decls = {};\n for (let i = 0; i < r.style.length; i++) {\n const prop = r.style[i];\n decls[camel(prop)] = r.style.getPropertyValue(prop);\n }\n const keep = KEEP_SELECTOR.test(r.selectorText) || Object.keys(decls).some((k) => KEEP_PROP.test(k));\n if (cssRules.length >= MAXR && !keep) { dropped++; continue; }\n cssRules.push(media ? { selector: r.selectorText, media: media, decls: decls } : { selector: r.selectorText, decls: decls });\n } else if (r.cssRules) {\n const cond = r.conditionText || (r.media && r.media.mediaText) || media;\n walk(r.cssRules, cond);\n }\n }\n };\n for (const sheet of document.styleSheets) {\n try {\n walk(sheet.cssRules, undefined);\n } catch (e) {\n unreadable++;\n }\n }\n\n const truncated = els.length > MAX;\n return {\n dom: document.documentElement.outerHTML,\n css: { v: 1, rules: cssRules, unreadable: unreadable, truncated: dropped > 0, dropped: dropped },\n title: document.title,\n // The doctype is NOT part of documentElement.outerHTML, so a capture that records only\n // the DOM drops it — and RGAA 8.1 (is a doctype present, valid, and before <html>?) then\n // has nothing to look at. Recorded as its own field for that reason.\n doctype: document.doctype ? '<!DOCTYPE ' + document.doctype.name + (document.doctype.publicId ? ' PUBLIC \"' + document.doctype.publicId + '\"' : '') + (document.doctype.systemId ? ' \"' + document.doctype.systemId + '\"' : '') + '>' : '',\n lang: document.documentElement.getAttribute('lang') || '',\n url: location.href,\n viewport: { width: window.innerWidth, height: window.innerHeight },\n styles: { v: 1, entries: styles, truncated: truncated },\n boxes: { v: 1, entries: boxes, truncated: truncated }\n };\n})()";
|
|
6
|
+
const COLLECT = "(() => {\n const PROPS = [\"color\",\"backgroundColor\",\"backgroundImage\",\"fontSize\",\"fontWeight\",\"fontStyle\",\"textDecorationLine\",\"textTransform\",\"lineHeight\",\"letterSpacing\",\"wordSpacing\",\"whiteSpace\",\"display\",\"visibility\",\"opacity\",\"position\",\"overflowX\",\"overflowY\",\"outlineStyle\",\"outlineWidth\",\"outlineColor\",\"borderTopStyle\",\"borderRightStyle\",\"borderBottomStyle\",\"borderLeftStyle\",\"borderTopWidth\",\"borderRightWidth\",\"borderBottomWidth\",\"borderLeftWidth\",\"borderTopColor\",\"borderRightColor\",\"borderBottomColor\",\"borderLeftColor\",\"boxShadow\",\"cursor\"];\n const MAX = 5000;\n // The ordinal is a JOIN KEY against parseHtml(dom), so the walk must enumerate elements\n // exactly as a reparse of the serialisation below will (#101). querySelectorAll('*') did not:\n // - an element appended INSIDE a raw-text element (Next's dev overlay puts <nextjs-portal>\n // in a <script>) is serialised as that element's raw text, and a reparse reads text —\n // one ordinal too many, and every digest refused from there on;\n // - <template> contents are serialised and reparsed as elements, but live in\n // template.content, which querySelectorAll never traverses — one ordinal too few.\n // Pre-order, children of the raw-text elements HTML parsers (htmlparser2 included) treat as\n // text skipped, template.content descended.\n const RAW_TEXT = new Set(['script', 'style', 'title', 'textarea', 'xmp', 'iframe', 'noembed', 'noframes']);\n const els = [];\n const walkElements = (parent) => {\n for (const child of parent.children) {\n els.push(child);\n const name = child.localName;\n if (RAW_TEXT.has(name)) continue;\n // With scripting on, a <noscript>'s content is raw TEXT to the browser, while the reparse\n // reads it as elements (#112). Parse that text with the page's own parser and count what\n // it yields, in place, so every later ordinal still lines up. The inert parsed nodes have\n // no computed style and an empty box, which the rules read as « nothing measured ».\n if (name === 'noscript' && child.children.length === 0 && (child.textContent || '').includes('<')) {\n const parsed = document.createElement('template');\n parsed.innerHTML = child.textContent || '';\n walkElements(parsed.content);\n continue;\n }\n walkElements(name === 'template' && child.content ? child.content : child);\n }\n };\n walkElements(document);\n const styles = [];\n const boxes = [];\n const n = Math.min(els.length, MAX);\n for (let i = 0; i < n; i++) {\n const el = els[i];\n const tag = el.tagName.toLowerCase();\n const cs = getComputedStyle(el);\n const css = {};\n for (const p of PROPS) {\n const v = cs[p];\n if (v !== undefined && v !== null && v !== '') css[p] = String(v);\n }\n styles.push({ i: i, tag: tag, css: css });\n const r = el.getBoundingClientRect();\n boxes.push({ i: i, tag: tag, x: Math.round(r.left), y: Math.round(r.top), w: Math.round(r.width), h: Math.round(r.height) });\n }\n // The page's own stylesheets. Some criteria are properties of the STYLESHEET rather than of\n // any element's computed style — focus styling removed with no replacement (2.4.7), a media\n // query that locks the orientation (1.3.4) — and this is the only place they exist.\n // A cross-origin sheet throws on .cssRules: COUNT those instead of ignoring them, so a rule\n // reading this digest can tell \"nothing there\" apart from \"I could not look\".\n // The cap is on the ORDINARY pool only, and the traversal never stops early.\n //\n // It used to return the moment the pool filled, which abandoned every remaining sheet —\n // and on a design-system app the pool fills long before the end. Measured on a real capture\n // of 38 pages: all 38 came back truncated, so rendered-focus-not-visible declined on every\n // one of them and 2.4.7 could never be decided by any number of scans. The rule was right to\n // decline (a :focus rule might have been among the dropped ones); the collector was wrong to\n // make that unavoidable.\n //\n // So the rules a rendered criterion actually READS — :focus styling, orientation locks,\n // pinned positioning, animation — are kept whatever the pool is doing, and truncated now\n // means \"some ordinary rule was dropped\", which is a much weaker statement. A rule can then\n // ask for what it needs instead of refusing on a cap that never concerned it.\n const cssRules = [];\n let unreadable = 0;\n let dropped = 0;\n const MAXR = 4000;\n const camel = (p) => p.replace(/-([a-z])/g, (_, c) => c.toUpperCase());\n const KEEP_SELECTOR = /:focus|:target|:active/i;\n const KEEP_PROP = /^(?:outline|position|animation|transition|transform)/;\n const walk = (list, media) => {\n for (const r of list) {\n if (typeof r.selectorText === 'string' && r.style) {\n const decls = {};\n for (let i = 0; i < r.style.length; i++) {\n const prop = r.style[i];\n decls[camel(prop)] = r.style.getPropertyValue(prop);\n }\n const keep = KEEP_SELECTOR.test(r.selectorText) || Object.keys(decls).some((k) => KEEP_PROP.test(k));\n if (cssRules.length >= MAXR && !keep) { dropped++; continue; }\n cssRules.push(media ? { selector: r.selectorText, media: media, decls: decls } : { selector: r.selectorText, decls: decls });\n } else if (r.cssRules) {\n const cond = r.conditionText || (r.media && r.media.mediaText) || media;\n walk(r.cssRules, cond);\n }\n }\n };\n for (const sheet of document.styleSheets) {\n try {\n walk(sheet.cssRules, undefined);\n } catch (e) {\n unreadable++;\n }\n }\n\n const truncated = els.length > MAX;\n return {\n dom: document.documentElement.outerHTML,\n css: { v: 1, rules: cssRules, unreadable: unreadable, truncated: dropped > 0, dropped: dropped },\n title: document.title,\n // The doctype is NOT part of documentElement.outerHTML, so a capture that records only\n // the DOM drops it — and RGAA 8.1 (is a doctype present, valid, and before <html>?) then\n // has nothing to look at. Recorded as its own field for that reason.\n doctype: document.doctype ? '<!DOCTYPE ' + document.doctype.name + (document.doctype.publicId ? ' PUBLIC \"' + document.doctype.publicId + '\"' : '') + (document.doctype.systemId ? ' \"' + document.doctype.systemId + '\"' : '') + '>' : '',\n lang: document.documentElement.getAttribute('lang') || '',\n url: location.href,\n viewport: { width: window.innerWidth, height: window.innerHeight },\n styles: { v: 1, entries: styles, truncated: truncated },\n boxes: { v: 1, entries: boxes, truncated: truncated }\n };\n})()";
|
|
7
7
|
const browser = await chromium.launch({ args: ["--no-sandbox", "--disable-dev-shm-usage"] });
|
|
8
8
|
try {
|
|
9
9
|
const page = await browser.newPage();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ultra11y",
|
|
3
|
-
"version": "5.55.
|
|
3
|
+
"version": "5.55.4",
|
|
4
4
|
"description": "Audit d'accessibilité RGAA 4.1.2, le référentiel de l'État : rapport daté, grille des 106 critères, backlog et tickets. Moteur statique, navigateur et jugement IA contre-vérifié. Il ne déclare jamais conforme ce qu'il n'a pas vérifié. Socle WCAG 2.2 AA.",
|
|
5
5
|
"homepage": "https://socialgouv.github.io/ultra11y/",
|
|
6
6
|
"type": "module",
|
package/scripts/ultra11y.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import { join as join54, relative as relative6, resolve as resolve18, sep as sep
|
|
|
6
6
|
import { fileURLToPath as fileURLToPath6, pathToFileURL as pathToFileURL3 } from "url";
|
|
7
7
|
|
|
8
8
|
// src/types.ts
|
|
9
|
-
var VERSION = "5.55.
|
|
9
|
+
var VERSION = "5.55.4";
|
|
10
10
|
var SCHEMA_VERSION = 2;
|
|
11
11
|
function isAdjudicated(by) {
|
|
12
12
|
return by === "agent" || by === "human";
|
|
@@ -38458,6 +38458,16 @@ var COLLECT_SNAPSHOT = `(() => {
|
|
|
38458
38458
|
els.push(child);
|
|
38459
38459
|
const name = child.localName;
|
|
38460
38460
|
if (RAW_TEXT.has(name)) continue;
|
|
38461
|
+
// With scripting on, a <noscript>'s content is raw TEXT to the browser, while the reparse
|
|
38462
|
+
// reads it as elements (#112). Parse that text with the page's own parser and count what
|
|
38463
|
+
// it yields, in place, so every later ordinal still lines up. The inert parsed nodes have
|
|
38464
|
+
// no computed style and an empty box, which the rules read as \xAB nothing measured \xBB.
|
|
38465
|
+
if (name === 'noscript' && child.children.length === 0 && (child.textContent || '').includes('<')) {
|
|
38466
|
+
const parsed = document.createElement('template');
|
|
38467
|
+
parsed.innerHTML = child.textContent || '';
|
|
38468
|
+
walkElements(parsed.content);
|
|
38469
|
+
continue;
|
|
38470
|
+
}
|
|
38461
38471
|
walkElements(name === 'template' && child.content ? child.content : child);
|
|
38462
38472
|
}
|
|
38463
38473
|
};
|
|
@@ -3,7 +3,7 @@ name: review-a11y
|
|
|
3
3
|
description: "Use to REVIEW changed frontend code for accessibility: staged files, a working diff, branch, or PR; prompts such as 'review a11y', 'is this accessible?', or 'anything to fix before merge?'; and hook or CI findings on a change. Run the bundled install-free engine with cross-file JSX/TSX analysis, then adjudicate candidates and return a severity-ranked WCAG 2.2 AA review with file:line fixes, residual rendering risks, and a verdict. Use `ultra11y` instead for whole-repo audits, dated conformance reports, country standards, PRD backlogs, or authoring accessible markup."
|
|
4
4
|
license: MIT
|
|
5
5
|
metadata:
|
|
6
|
-
version: 5.55.
|
|
6
|
+
version: 5.55.4
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# review-a11y — accessibility review of changed code
|
|
@@ -6,7 +6,7 @@ import { join as join54, relative as relative6, resolve as resolve18, sep as sep
|
|
|
6
6
|
import { fileURLToPath as fileURLToPath6, pathToFileURL as pathToFileURL3 } from "url";
|
|
7
7
|
|
|
8
8
|
// src/types.ts
|
|
9
|
-
var VERSION = "5.55.
|
|
9
|
+
var VERSION = "5.55.4";
|
|
10
10
|
var SCHEMA_VERSION = 2;
|
|
11
11
|
function isAdjudicated(by) {
|
|
12
12
|
return by === "agent" || by === "human";
|
|
@@ -38458,6 +38458,16 @@ var COLLECT_SNAPSHOT = `(() => {
|
|
|
38458
38458
|
els.push(child);
|
|
38459
38459
|
const name = child.localName;
|
|
38460
38460
|
if (RAW_TEXT.has(name)) continue;
|
|
38461
|
+
// With scripting on, a <noscript>'s content is raw TEXT to the browser, while the reparse
|
|
38462
|
+
// reads it as elements (#112). Parse that text with the page's own parser and count what
|
|
38463
|
+
// it yields, in place, so every later ordinal still lines up. The inert parsed nodes have
|
|
38464
|
+
// no computed style and an empty box, which the rules read as \xAB nothing measured \xBB.
|
|
38465
|
+
if (name === 'noscript' && child.children.length === 0 && (child.textContent || '').includes('<')) {
|
|
38466
|
+
const parsed = document.createElement('template');
|
|
38467
|
+
parsed.innerHTML = child.textContent || '';
|
|
38468
|
+
walkElements(parsed.content);
|
|
38469
|
+
continue;
|
|
38470
|
+
}
|
|
38461
38471
|
walkElements(name === 'template' && child.content ? child.content : child);
|
|
38462
38472
|
}
|
|
38463
38473
|
};
|
package/skills/ultra11y/SKILL.md
CHANGED
|
@@ -3,7 +3,7 @@ name: ultra11y
|
|
|
3
3
|
description: "Use to AUDIT a site, repository, or page against RGAA 4.1.2, the French State's accessibility standard (référentiel de l'État), on a WCAG 2.2 AA core (other country standards as packs); produce a dated conformance report, criterion grid, PRD backlog, or tickets; AUTHOR accessible markup; fix accessibility; or wire a repo gate and rendered-DOM capture pipeline. The bundled install-free engine runs 102 static checks tied to success criteria, while the agent adjudicates judgment criteria and routes rendering criteria to browser scans; check/verify reject invented non-conformities and never declare conforming what was not verified. Use `review-a11y` instead for a review scoped only to a diff, branch, or PR."
|
|
4
4
|
license: MIT
|
|
5
5
|
metadata:
|
|
6
|
-
version: 5.55.
|
|
6
|
+
version: 5.55.4
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# ultra11y — audit WCAG 2.2 AA and write accessible markup
|
|
@@ -6,7 +6,7 @@ import { join as join54, relative as relative6, resolve as resolve18, sep as sep
|
|
|
6
6
|
import { fileURLToPath as fileURLToPath6, pathToFileURL as pathToFileURL3 } from "url";
|
|
7
7
|
|
|
8
8
|
// src/types.ts
|
|
9
|
-
var VERSION = "5.55.
|
|
9
|
+
var VERSION = "5.55.4";
|
|
10
10
|
var SCHEMA_VERSION = 2;
|
|
11
11
|
function isAdjudicated(by) {
|
|
12
12
|
return by === "agent" || by === "human";
|
|
@@ -38458,6 +38458,16 @@ var COLLECT_SNAPSHOT = `(() => {
|
|
|
38458
38458
|
els.push(child);
|
|
38459
38459
|
const name = child.localName;
|
|
38460
38460
|
if (RAW_TEXT.has(name)) continue;
|
|
38461
|
+
// With scripting on, a <noscript>'s content is raw TEXT to the browser, while the reparse
|
|
38462
|
+
// reads it as elements (#112). Parse that text with the page's own parser and count what
|
|
38463
|
+
// it yields, in place, so every later ordinal still lines up. The inert parsed nodes have
|
|
38464
|
+
// no computed style and an empty box, which the rules read as \xAB nothing measured \xBB.
|
|
38465
|
+
if (name === 'noscript' && child.children.length === 0 && (child.textContent || '').includes('<')) {
|
|
38466
|
+
const parsed = document.createElement('template');
|
|
38467
|
+
parsed.innerHTML = child.textContent || '';
|
|
38468
|
+
walkElements(parsed.content);
|
|
38469
|
+
continue;
|
|
38470
|
+
}
|
|
38461
38471
|
walkElements(name === 'template' && child.content ? child.content : child);
|
|
38462
38472
|
}
|
|
38463
38473
|
};
|
|
@@ -27,7 +27,7 @@ variables:
|
|
|
27
27
|
ULTRA11Y_LANG: en
|
|
28
28
|
# Exact by default: a CI report must say which engine produced it. The release script keeps
|
|
29
29
|
# this pin aligned with the package version; override only for a deliberate upgrade test.
|
|
30
|
-
ULTRA11Y_VERSION: '5.55.
|
|
30
|
+
ULTRA11Y_VERSION: '5.55.4'
|
|
31
31
|
# Batches of 8 amortise the prompt; each accepted verdict is checkpointed before the next
|
|
32
32
|
# batch, and later passes receive only the residue.
|
|
33
33
|
ULTRA11Y_GRAIN: batch
|
package/src/collector.ts
CHANGED
|
@@ -77,6 +77,16 @@ export const COLLECT_SNAPSHOT = `(() => {
|
|
|
77
77
|
els.push(child);
|
|
78
78
|
const name = child.localName;
|
|
79
79
|
if (RAW_TEXT.has(name)) continue;
|
|
80
|
+
// With scripting on, a <noscript>'s content is raw TEXT to the browser, while the reparse
|
|
81
|
+
// reads it as elements (#112). Parse that text with the page's own parser and count what
|
|
82
|
+
// it yields, in place, so every later ordinal still lines up. The inert parsed nodes have
|
|
83
|
+
// no computed style and an empty box, which the rules read as « nothing measured ».
|
|
84
|
+
if (name === 'noscript' && child.children.length === 0 && (child.textContent || '').includes('<')) {
|
|
85
|
+
const parsed = document.createElement('template');
|
|
86
|
+
parsed.innerHTML = child.textContent || '';
|
|
87
|
+
walkElements(parsed.content);
|
|
88
|
+
continue;
|
|
89
|
+
}
|
|
80
90
|
walkElements(name === 'template' && child.content ? child.content : child);
|
|
81
91
|
}
|
|
82
92
|
};
|
package/src/types.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Single source of truth for shared types + the embedded version. sync-version.mjs
|
|
2
2
|
// rewrites VERSION at release time (kept in lockstep with package.json + SKILL.md).
|
|
3
|
-
export const VERSION = "5.55.
|
|
3
|
+
export const VERSION = "5.55.4";
|
|
4
4
|
export const SCHEMA_VERSION = 2;
|
|
5
5
|
|
|
6
6
|
// Lang = the UI FRAME's language — the `L` localization tables each module (report,
|