ultra11y 5.55.1 → 5.55.2

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.
@@ -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.1",
13
+ "version": "5.55.2",
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.1",
4
+ "version": "5.55.2",
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.1",
4
+ "version": "5.55.2",
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.1";
30
+ const ULTRA11Y_PLUGIN_VERSION = "5.55.2";
31
31
 
32
32
  const here = dirname(fileURLToPath(import.meta.url));
33
33
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultra11y",
3
- "version": "5.55.1",
3
+ "version": "5.55.2",
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",
@@ -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.1";
9
+ var VERSION = "5.55.2";
10
10
  var SCHEMA_VERSION = 2;
11
11
  function isAdjudicated(by) {
12
12
  return by === "agent" || by === "human";
@@ -48646,12 +48646,12 @@ var PROBE_KEYS = {
48646
48646
  "4.1.3": ["liveRegion"]
48647
48647
  };
48648
48648
  var MEASURED_SCS = ["1.3.4", "1.4.1", "1.4.3", "1.4.4", "1.4.10", "1.4.11", "1.4.12", "1.4.13", "2.1.2", "2.4.7", "2.4.11", "4.1.3"];
48649
- var insideRoleImg = (e) => ancestors(e).some((a) => (attr(a, "role") ?? "").trim().toLowerCase() === "img");
48649
+ var insideRoleImg = (e) => ancestors(e).some((a) => roleOf(a) === "img");
48650
48650
  var SUBJECTS = {
48651
48651
  // Every image-like element and the alternative it carries. Class = (alt, src): the same
48652
48652
  // logo on 38 pages is one decision, not 38.
48653
48653
  images: (docs) => docs.flatMap(
48654
- (d) => elementsByTag(d, "img", "svg", "area", "object", "embed", "canvas").concat(elementsByTag(d, "input").filter((e) => (attr(e, "type") ?? "").trim().toLowerCase() === "image")).concat(d.elements.filter((e) => attr(e, "role") === "img")).filter((e, i2, a) => a.indexOf(e) === i2 && !insideRoleImg(e)).map((e) => {
48654
+ (d) => elementsByTag(d, "img", "svg", "area", "object", "embed", "canvas").concat(elementsByTag(d, "input").filter((e) => (attr(e, "type") ?? "").trim().toLowerCase() === "image")).concat(d.elements.filter((e) => roleOf(e) === "img")).filter((e, i2, a) => a.indexOf(e) === i2 && !insideRoleImg(e)).map((e) => {
48655
48655
  const extra = ["title", "aria-labelledby", "aria-hidden", "role", "aria-describedby", "longdesc"].filter((a) => attr(e, a) !== void 0).map((a) => ` ${a}="${(attr(e, a) ?? "").slice(0, 60)}"`).join("");
48656
48656
  const figure = ancestors(e).some((a) => a.tag === "figure");
48657
48657
  return h(
@@ -50070,8 +50070,10 @@ function visibleLabelText(el) {
50070
50070
  return collapse(out2);
50071
50071
  }
50072
50072
  var NOT_INTITULE_CLASS = /(^|\s)(fr-hint-text|fr-sr-only|sr-only|visually-hidden|visuallyhidden|hint-text|help-text)(\s|$)/;
50073
+ var VISUALLY_HIDDEN_CLASS = /(^|\s)(fr-sr-only|sr-only|visually-hidden|visuallyhidden)(\s|$)/;
50073
50074
  var FIELD_DESCENDANT = /* @__PURE__ */ new Set(["input", "select", "textarea", "button", "datalist", "output"]);
50074
50075
  function primaryLabelText(label) {
50076
+ if ([label, ...ancestors(label)].some((e) => VISUALLY_HIDDEN_CLASS.test(attr(e, "class") ?? ""))) return "";
50075
50077
  let out2 = "";
50076
50078
  const nonText = /* @__PURE__ */ new Set(["script", "style", "title", "desc", "noscript", "template", "canvas", "video", "img", "svg"]);
50077
50079
  const walk3 = (n) => {
@@ -50340,7 +50342,7 @@ var figureCaptionUnassociated = {
50340
50342
  for (const el of doc.elements) {
50341
50343
  if (el.tag !== "figure" || isHidden(el) || hasDynamicSpread(el)) continue;
50342
50344
  const desc = descendants(el);
50343
- const caption = desc.find((d) => d.tag === "figcaption");
50345
+ const caption = desc.find((d) => d.tag === "figcaption" && ancestors(d).find((a) => a.tag === "figure") === el);
50344
50346
  if (!caption || !desc.some((d) => d !== caption && isCaptionedImage(d) && !ancestors(d).includes(caption))) continue;
50345
50347
  const captionText = collapseWs(textContent(caption));
50346
50348
  if (!captionText || captionText.includes("{") || mayInjectContent(caption)) continue;
@@ -51017,7 +51019,9 @@ var menuitemEmptyName = {
51017
51019
  criteria: ["4.1.2"],
51018
51020
  severity: "bloquant",
51019
51021
  run(doc) {
51020
- return doc.elements.filter((el) => ["menuitem", "menuitemcheckbox", "menuitemradio"].includes((attr(el, "role") ?? "").trim().toLowerCase())).filter((el) => !isHiddenFromAT(el) && !hasDynamicSpread(el) && !mayInjectContent(el) && accessibleName(el, doc).trim() === "").map((el) => ({ criteriaId: "4.1.2", el, msgId: "menuitem-empty-name" }));
51022
+ return doc.elements.filter((el) => ["menuitem", "menuitemcheckbox", "menuitemradio"].includes((attr(el, "role") ?? "").trim().toLowerCase())).filter(
51023
+ (el) => !isHiddenFromAT(el) && !hasDynamicSpread(el) && !mayInjectContent(el) && !labelledbyIsDynamic(el) && accessibleName(el, doc).trim() === ""
51024
+ ).map((el) => ({ criteriaId: "4.1.2", el, msgId: "menuitem-empty-name" }));
51021
51025
  }
51022
51026
  };
51023
51027
  var nestedInteractive = {
@@ -51693,6 +51697,9 @@ var ALLOWED_IN_LIST = /* @__PURE__ */ new Set(["li", "script", "template", "slot
51693
51697
  function rendersElsewhere(tag) {
51694
51698
  return !isIntrinsic(tag) || tag.includes("-") || tag === "component";
51695
51699
  }
51700
+ function listChildren(el) {
51701
+ return el.children.flatMap((c2) => c2.type !== "element" ? [] : c2.tag === "#fragment" ? listChildren(c2) : [c2]);
51702
+ }
51696
51703
  var listStructure = {
51697
51704
  id: "list-structure",
51698
51705
  criteria: ["1.3.1"],
@@ -51701,8 +51708,8 @@ var listStructure = {
51701
51708
  const out2 = [];
51702
51709
  for (const el of doc.elements) {
51703
51710
  if (el.tag === "ul" || el.tag === "ol") {
51704
- const bad = el.children.find((c2) => c2.type === "element" && !rendersElsewhere(c2.tag) && !ALLOWED_IN_LIST.has(c2.tag));
51705
- if (bad && bad.type === "element") {
51711
+ const bad = listChildren(el).find((c2) => !rendersElsewhere(c2.tag) && !ALLOWED_IN_LIST.has(c2.tag));
51712
+ if (bad) {
51706
51713
  out2.push({
51707
51714
  criteriaId: "1.3.1",
51708
51715
  el: bad,
@@ -51716,7 +51723,7 @@ var listStructure = {
51716
51723
  if (parent.tag === "template" || ancestors(el).some((a) => a.tag === "template" || a.tag !== "#fragment" && rendersElsewhere(a.tag))) continue;
51717
51724
  let host = parent;
51718
51725
  while (host && host.tag === "#fragment") host = host.parent;
51719
- if (!host) continue;
51726
+ if (!host || ["ul", "ol", "menu"].includes(host.tag)) continue;
51720
51727
  out2.push({
51721
51728
  criteriaId: "1.3.1",
51722
51729
  el,
@@ -52450,7 +52457,8 @@ var controlLabelMissing = {
52450
52457
  if (via === "title") continue;
52451
52458
  if (hasDynamicSpread(el)) continue;
52452
52459
  if (hasAttr(el, "placeholder")) continue;
52453
- if ((attr(el, "id") ?? "").includes("{")) continue;
52460
+ const id = attr(el, "id");
52461
+ if (id === void 0 ? hasBoundAttr(el, "id") : id.includes("{")) continue;
52454
52462
  out2.push({
52455
52463
  criteriaId: "4.1.2",
52456
52464
  el,
@@ -60599,9 +60607,13 @@ var wcag_default2 = {
60599
60607
  examples: [
60600
60608
  {
60601
60609
  lang: "html",
60602
- good: '<form name="signup" id="signup" method="post" action="">\n <p id="errors" aria-live="assertive"></p>\n <div>\n <label for="first">First Name (required)</label>\n <input aria-invalid="false" autocomplete="given-name" id="first" name="first" type="text">\n </div>\n <div>\n <label for="last">Last Name (required)</label>\n <input aria-invalid="false" autocomplete="family-name" id="last" name="last" type="text">\n </div>\n <div>\n <label for="email">Email (required)</label>\n <input aria-invalid="false" autocomplete="email" id="email" name="email" type="text">\n </div>\n <div>\n <button id="button" type="submit">Sign Up</button>\n </div>\n</form>',
60610
+ good: `<dialog aria-labelledby="alert-heading" id="date-alert" role="alertdialog">
60611
+ <h1 id="alert-heading">Error</h1>
60612
+ <p>Employee's Birth Date is after their hire date. Please verify the birth date and hire date.</p>
60613
+ <button command="close" commandfor="date-alert" type="button">Return to page and correct error</button>
60614
+ </dialog>`,
60603
60615
  note: {
60604
- en: "Good: Using aria-invalid to Indicate An Error Field (ARIA21)."
60616
+ en: "Good: Using aria-alertdialog to Identify Errors (ARIA18)."
60605
60617
  }
60606
60618
  }
60607
60619
  ],
@@ -60714,7 +60726,7 @@ var wcag_default2 = {
60714
60726
  fr: "Nom, r\xF4le et valeur"
60715
60727
  },
60716
60728
  summary: {
60717
- en: "Give components correct names, roles, states, and values. People using assistive technology understand all components. Assistive technology only works well when code is done properly."
60729
+ en: "Give components appropriate names, roles, states, and values. People using assistive technology understand all components. Assistive technology only works well when code is done properly."
60718
60730
  },
60719
60731
  examples: [
60720
60732
  {
@@ -2,7 +2,7 @@
2
2
  "source": "https://github.com/w3c/wcag",
3
3
  "understanding": "https://www.w3.org/WAI/WCAG22/Understanding/",
4
4
  "license": "W3C Document License (code samples: W3C Software License)",
5
- "fetchedAt": "2026-10-28",
5
+ "fetchedAt": "2026-11-02",
6
6
  "criteria": {
7
7
  "1.1.1": {
8
8
  "slug": "non-text-content",
@@ -731,11 +731,11 @@
731
731
  "whyitsimportant": "Flagging errors helps people with reduced sight and cognitive disabilities resolve them."
732
732
  },
733
733
  "good": {
734
- "id": "ARIA21",
735
- "title": "Using aria-invalid to Indicate An Error Field",
734
+ "id": "ARIA18",
735
+ "title": "Using aria-alertdialog to Identify Errors",
736
736
  "lang": "html",
737
- "code": "<form name=\"signup\" id=\"signup\" method=\"post\" action=\"\">\n <p id=\"errors\" aria-live=\"assertive\"></p>\n <div>\n <label for=\"first\">First Name (required)</label>\n <input aria-invalid=\"false\" autocomplete=\"given-name\" id=\"first\" name=\"first\" type=\"text\">\n </div>\n <div>\n <label for=\"last\">Last Name (required)</label>\n <input aria-invalid=\"false\" autocomplete=\"family-name\" id=\"last\" name=\"last\" type=\"text\">\n </div>\n <div>\n <label for=\"email\">Email (required)</label>\n <input aria-invalid=\"false\" autocomplete=\"email\" id=\"email\" name=\"email\" type=\"text\">\n </div>\n <div>\n <button id=\"button\" type=\"submit\">Sign Up</button>\n </div>\n</form>",
738
- "note": "Using aria-invalid on required fields The aria-invalid attribute is used on required fields that are empty when the form is submitted. A message above the form tells the user that there are form fields that need to be completed. HTML:"
737
+ "code": "<dialog aria-labelledby=\"alert-heading\" id=\"date-alert\" role=\"alertdialog\">\n <h1 id=\"alert-heading\">Error</h1>\n <p>Employee's Birth Date is after their hire date. Please verify the birth date and hire date.</p>\n <button command=\"close\" commandfor=\"date-alert\" type=\"button\">Return to page and correct error</button>\n</dialog>",
738
+ "note": "Alert dialog This example shows how a notification using role=\"alertdialog\" can be used to notify someone they have entered invalid information."
739
739
  }
740
740
  },
741
741
  "3.3.2": {
@@ -803,7 +803,7 @@
803
803
  "slug": "name-role-value",
804
804
  "brief": {
805
805
  "goal": "People using assistive technology understand all components.",
806
- "whattodo": "Give components correct names, roles, states, and values.",
806
+ "whattodo": "Give components appropriate names, roles, states, and values.",
807
807
  "whyitsimportant": "Assistive technology only works well when code is done properly."
808
808
  },
809
809
  "good": {
@@ -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.1
6
+ version: 5.55.2
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.1";
9
+ var VERSION = "5.55.2";
10
10
  var SCHEMA_VERSION = 2;
11
11
  function isAdjudicated(by) {
12
12
  return by === "agent" || by === "human";
@@ -48646,12 +48646,12 @@ var PROBE_KEYS = {
48646
48646
  "4.1.3": ["liveRegion"]
48647
48647
  };
48648
48648
  var MEASURED_SCS = ["1.3.4", "1.4.1", "1.4.3", "1.4.4", "1.4.10", "1.4.11", "1.4.12", "1.4.13", "2.1.2", "2.4.7", "2.4.11", "4.1.3"];
48649
- var insideRoleImg = (e) => ancestors(e).some((a) => (attr(a, "role") ?? "").trim().toLowerCase() === "img");
48649
+ var insideRoleImg = (e) => ancestors(e).some((a) => roleOf(a) === "img");
48650
48650
  var SUBJECTS = {
48651
48651
  // Every image-like element and the alternative it carries. Class = (alt, src): the same
48652
48652
  // logo on 38 pages is one decision, not 38.
48653
48653
  images: (docs) => docs.flatMap(
48654
- (d) => elementsByTag(d, "img", "svg", "area", "object", "embed", "canvas").concat(elementsByTag(d, "input").filter((e) => (attr(e, "type") ?? "").trim().toLowerCase() === "image")).concat(d.elements.filter((e) => attr(e, "role") === "img")).filter((e, i2, a) => a.indexOf(e) === i2 && !insideRoleImg(e)).map((e) => {
48654
+ (d) => elementsByTag(d, "img", "svg", "area", "object", "embed", "canvas").concat(elementsByTag(d, "input").filter((e) => (attr(e, "type") ?? "").trim().toLowerCase() === "image")).concat(d.elements.filter((e) => roleOf(e) === "img")).filter((e, i2, a) => a.indexOf(e) === i2 && !insideRoleImg(e)).map((e) => {
48655
48655
  const extra = ["title", "aria-labelledby", "aria-hidden", "role", "aria-describedby", "longdesc"].filter((a) => attr(e, a) !== void 0).map((a) => ` ${a}="${(attr(e, a) ?? "").slice(0, 60)}"`).join("");
48656
48656
  const figure = ancestors(e).some((a) => a.tag === "figure");
48657
48657
  return h(
@@ -50070,8 +50070,10 @@ function visibleLabelText(el) {
50070
50070
  return collapse(out2);
50071
50071
  }
50072
50072
  var NOT_INTITULE_CLASS = /(^|\s)(fr-hint-text|fr-sr-only|sr-only|visually-hidden|visuallyhidden|hint-text|help-text)(\s|$)/;
50073
+ var VISUALLY_HIDDEN_CLASS = /(^|\s)(fr-sr-only|sr-only|visually-hidden|visuallyhidden)(\s|$)/;
50073
50074
  var FIELD_DESCENDANT = /* @__PURE__ */ new Set(["input", "select", "textarea", "button", "datalist", "output"]);
50074
50075
  function primaryLabelText(label) {
50076
+ if ([label, ...ancestors(label)].some((e) => VISUALLY_HIDDEN_CLASS.test(attr(e, "class") ?? ""))) return "";
50075
50077
  let out2 = "";
50076
50078
  const nonText = /* @__PURE__ */ new Set(["script", "style", "title", "desc", "noscript", "template", "canvas", "video", "img", "svg"]);
50077
50079
  const walk3 = (n) => {
@@ -50340,7 +50342,7 @@ var figureCaptionUnassociated = {
50340
50342
  for (const el of doc.elements) {
50341
50343
  if (el.tag !== "figure" || isHidden(el) || hasDynamicSpread(el)) continue;
50342
50344
  const desc = descendants(el);
50343
- const caption = desc.find((d) => d.tag === "figcaption");
50345
+ const caption = desc.find((d) => d.tag === "figcaption" && ancestors(d).find((a) => a.tag === "figure") === el);
50344
50346
  if (!caption || !desc.some((d) => d !== caption && isCaptionedImage(d) && !ancestors(d).includes(caption))) continue;
50345
50347
  const captionText = collapseWs(textContent(caption));
50346
50348
  if (!captionText || captionText.includes("{") || mayInjectContent(caption)) continue;
@@ -51017,7 +51019,9 @@ var menuitemEmptyName = {
51017
51019
  criteria: ["4.1.2"],
51018
51020
  severity: "bloquant",
51019
51021
  run(doc) {
51020
- return doc.elements.filter((el) => ["menuitem", "menuitemcheckbox", "menuitemradio"].includes((attr(el, "role") ?? "").trim().toLowerCase())).filter((el) => !isHiddenFromAT(el) && !hasDynamicSpread(el) && !mayInjectContent(el) && accessibleName(el, doc).trim() === "").map((el) => ({ criteriaId: "4.1.2", el, msgId: "menuitem-empty-name" }));
51022
+ return doc.elements.filter((el) => ["menuitem", "menuitemcheckbox", "menuitemradio"].includes((attr(el, "role") ?? "").trim().toLowerCase())).filter(
51023
+ (el) => !isHiddenFromAT(el) && !hasDynamicSpread(el) && !mayInjectContent(el) && !labelledbyIsDynamic(el) && accessibleName(el, doc).trim() === ""
51024
+ ).map((el) => ({ criteriaId: "4.1.2", el, msgId: "menuitem-empty-name" }));
51021
51025
  }
51022
51026
  };
51023
51027
  var nestedInteractive = {
@@ -51693,6 +51697,9 @@ var ALLOWED_IN_LIST = /* @__PURE__ */ new Set(["li", "script", "template", "slot
51693
51697
  function rendersElsewhere(tag) {
51694
51698
  return !isIntrinsic(tag) || tag.includes("-") || tag === "component";
51695
51699
  }
51700
+ function listChildren(el) {
51701
+ return el.children.flatMap((c2) => c2.type !== "element" ? [] : c2.tag === "#fragment" ? listChildren(c2) : [c2]);
51702
+ }
51696
51703
  var listStructure = {
51697
51704
  id: "list-structure",
51698
51705
  criteria: ["1.3.1"],
@@ -51701,8 +51708,8 @@ var listStructure = {
51701
51708
  const out2 = [];
51702
51709
  for (const el of doc.elements) {
51703
51710
  if (el.tag === "ul" || el.tag === "ol") {
51704
- const bad = el.children.find((c2) => c2.type === "element" && !rendersElsewhere(c2.tag) && !ALLOWED_IN_LIST.has(c2.tag));
51705
- if (bad && bad.type === "element") {
51711
+ const bad = listChildren(el).find((c2) => !rendersElsewhere(c2.tag) && !ALLOWED_IN_LIST.has(c2.tag));
51712
+ if (bad) {
51706
51713
  out2.push({
51707
51714
  criteriaId: "1.3.1",
51708
51715
  el: bad,
@@ -51716,7 +51723,7 @@ var listStructure = {
51716
51723
  if (parent.tag === "template" || ancestors(el).some((a) => a.tag === "template" || a.tag !== "#fragment" && rendersElsewhere(a.tag))) continue;
51717
51724
  let host = parent;
51718
51725
  while (host && host.tag === "#fragment") host = host.parent;
51719
- if (!host) continue;
51726
+ if (!host || ["ul", "ol", "menu"].includes(host.tag)) continue;
51720
51727
  out2.push({
51721
51728
  criteriaId: "1.3.1",
51722
51729
  el,
@@ -52450,7 +52457,8 @@ var controlLabelMissing = {
52450
52457
  if (via === "title") continue;
52451
52458
  if (hasDynamicSpread(el)) continue;
52452
52459
  if (hasAttr(el, "placeholder")) continue;
52453
- if ((attr(el, "id") ?? "").includes("{")) continue;
52460
+ const id = attr(el, "id");
52461
+ if (id === void 0 ? hasBoundAttr(el, "id") : id.includes("{")) continue;
52454
52462
  out2.push({
52455
52463
  criteriaId: "4.1.2",
52456
52464
  el,
@@ -60599,9 +60607,13 @@ var wcag_default2 = {
60599
60607
  examples: [
60600
60608
  {
60601
60609
  lang: "html",
60602
- good: '<form name="signup" id="signup" method="post" action="">\n <p id="errors" aria-live="assertive"></p>\n <div>\n <label for="first">First Name (required)</label>\n <input aria-invalid="false" autocomplete="given-name" id="first" name="first" type="text">\n </div>\n <div>\n <label for="last">Last Name (required)</label>\n <input aria-invalid="false" autocomplete="family-name" id="last" name="last" type="text">\n </div>\n <div>\n <label for="email">Email (required)</label>\n <input aria-invalid="false" autocomplete="email" id="email" name="email" type="text">\n </div>\n <div>\n <button id="button" type="submit">Sign Up</button>\n </div>\n</form>',
60610
+ good: `<dialog aria-labelledby="alert-heading" id="date-alert" role="alertdialog">
60611
+ <h1 id="alert-heading">Error</h1>
60612
+ <p>Employee's Birth Date is after their hire date. Please verify the birth date and hire date.</p>
60613
+ <button command="close" commandfor="date-alert" type="button">Return to page and correct error</button>
60614
+ </dialog>`,
60603
60615
  note: {
60604
- en: "Good: Using aria-invalid to Indicate An Error Field (ARIA21)."
60616
+ en: "Good: Using aria-alertdialog to Identify Errors (ARIA18)."
60605
60617
  }
60606
60618
  }
60607
60619
  ],
@@ -60714,7 +60726,7 @@ var wcag_default2 = {
60714
60726
  fr: "Nom, r\xF4le et valeur"
60715
60727
  },
60716
60728
  summary: {
60717
- en: "Give components correct names, roles, states, and values. People using assistive technology understand all components. Assistive technology only works well when code is done properly."
60729
+ en: "Give components appropriate names, roles, states, and values. People using assistive technology understand all components. Assistive technology only works well when code is done properly."
60718
60730
  },
60719
60731
  examples: [
60720
60732
  {
@@ -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.1
6
+ version: 5.55.2
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.1";
9
+ var VERSION = "5.55.2";
10
10
  var SCHEMA_VERSION = 2;
11
11
  function isAdjudicated(by) {
12
12
  return by === "agent" || by === "human";
@@ -48646,12 +48646,12 @@ var PROBE_KEYS = {
48646
48646
  "4.1.3": ["liveRegion"]
48647
48647
  };
48648
48648
  var MEASURED_SCS = ["1.3.4", "1.4.1", "1.4.3", "1.4.4", "1.4.10", "1.4.11", "1.4.12", "1.4.13", "2.1.2", "2.4.7", "2.4.11", "4.1.3"];
48649
- var insideRoleImg = (e) => ancestors(e).some((a) => (attr(a, "role") ?? "").trim().toLowerCase() === "img");
48649
+ var insideRoleImg = (e) => ancestors(e).some((a) => roleOf(a) === "img");
48650
48650
  var SUBJECTS = {
48651
48651
  // Every image-like element and the alternative it carries. Class = (alt, src): the same
48652
48652
  // logo on 38 pages is one decision, not 38.
48653
48653
  images: (docs) => docs.flatMap(
48654
- (d) => elementsByTag(d, "img", "svg", "area", "object", "embed", "canvas").concat(elementsByTag(d, "input").filter((e) => (attr(e, "type") ?? "").trim().toLowerCase() === "image")).concat(d.elements.filter((e) => attr(e, "role") === "img")).filter((e, i2, a) => a.indexOf(e) === i2 && !insideRoleImg(e)).map((e) => {
48654
+ (d) => elementsByTag(d, "img", "svg", "area", "object", "embed", "canvas").concat(elementsByTag(d, "input").filter((e) => (attr(e, "type") ?? "").trim().toLowerCase() === "image")).concat(d.elements.filter((e) => roleOf(e) === "img")).filter((e, i2, a) => a.indexOf(e) === i2 && !insideRoleImg(e)).map((e) => {
48655
48655
  const extra = ["title", "aria-labelledby", "aria-hidden", "role", "aria-describedby", "longdesc"].filter((a) => attr(e, a) !== void 0).map((a) => ` ${a}="${(attr(e, a) ?? "").slice(0, 60)}"`).join("");
48656
48656
  const figure = ancestors(e).some((a) => a.tag === "figure");
48657
48657
  return h(
@@ -50070,8 +50070,10 @@ function visibleLabelText(el) {
50070
50070
  return collapse(out2);
50071
50071
  }
50072
50072
  var NOT_INTITULE_CLASS = /(^|\s)(fr-hint-text|fr-sr-only|sr-only|visually-hidden|visuallyhidden|hint-text|help-text)(\s|$)/;
50073
+ var VISUALLY_HIDDEN_CLASS = /(^|\s)(fr-sr-only|sr-only|visually-hidden|visuallyhidden)(\s|$)/;
50073
50074
  var FIELD_DESCENDANT = /* @__PURE__ */ new Set(["input", "select", "textarea", "button", "datalist", "output"]);
50074
50075
  function primaryLabelText(label) {
50076
+ if ([label, ...ancestors(label)].some((e) => VISUALLY_HIDDEN_CLASS.test(attr(e, "class") ?? ""))) return "";
50075
50077
  let out2 = "";
50076
50078
  const nonText = /* @__PURE__ */ new Set(["script", "style", "title", "desc", "noscript", "template", "canvas", "video", "img", "svg"]);
50077
50079
  const walk3 = (n) => {
@@ -50340,7 +50342,7 @@ var figureCaptionUnassociated = {
50340
50342
  for (const el of doc.elements) {
50341
50343
  if (el.tag !== "figure" || isHidden(el) || hasDynamicSpread(el)) continue;
50342
50344
  const desc = descendants(el);
50343
- const caption = desc.find((d) => d.tag === "figcaption");
50345
+ const caption = desc.find((d) => d.tag === "figcaption" && ancestors(d).find((a) => a.tag === "figure") === el);
50344
50346
  if (!caption || !desc.some((d) => d !== caption && isCaptionedImage(d) && !ancestors(d).includes(caption))) continue;
50345
50347
  const captionText = collapseWs(textContent(caption));
50346
50348
  if (!captionText || captionText.includes("{") || mayInjectContent(caption)) continue;
@@ -51017,7 +51019,9 @@ var menuitemEmptyName = {
51017
51019
  criteria: ["4.1.2"],
51018
51020
  severity: "bloquant",
51019
51021
  run(doc) {
51020
- return doc.elements.filter((el) => ["menuitem", "menuitemcheckbox", "menuitemradio"].includes((attr(el, "role") ?? "").trim().toLowerCase())).filter((el) => !isHiddenFromAT(el) && !hasDynamicSpread(el) && !mayInjectContent(el) && accessibleName(el, doc).trim() === "").map((el) => ({ criteriaId: "4.1.2", el, msgId: "menuitem-empty-name" }));
51022
+ return doc.elements.filter((el) => ["menuitem", "menuitemcheckbox", "menuitemradio"].includes((attr(el, "role") ?? "").trim().toLowerCase())).filter(
51023
+ (el) => !isHiddenFromAT(el) && !hasDynamicSpread(el) && !mayInjectContent(el) && !labelledbyIsDynamic(el) && accessibleName(el, doc).trim() === ""
51024
+ ).map((el) => ({ criteriaId: "4.1.2", el, msgId: "menuitem-empty-name" }));
51021
51025
  }
51022
51026
  };
51023
51027
  var nestedInteractive = {
@@ -51693,6 +51697,9 @@ var ALLOWED_IN_LIST = /* @__PURE__ */ new Set(["li", "script", "template", "slot
51693
51697
  function rendersElsewhere(tag) {
51694
51698
  return !isIntrinsic(tag) || tag.includes("-") || tag === "component";
51695
51699
  }
51700
+ function listChildren(el) {
51701
+ return el.children.flatMap((c2) => c2.type !== "element" ? [] : c2.tag === "#fragment" ? listChildren(c2) : [c2]);
51702
+ }
51696
51703
  var listStructure = {
51697
51704
  id: "list-structure",
51698
51705
  criteria: ["1.3.1"],
@@ -51701,8 +51708,8 @@ var listStructure = {
51701
51708
  const out2 = [];
51702
51709
  for (const el of doc.elements) {
51703
51710
  if (el.tag === "ul" || el.tag === "ol") {
51704
- const bad = el.children.find((c2) => c2.type === "element" && !rendersElsewhere(c2.tag) && !ALLOWED_IN_LIST.has(c2.tag));
51705
- if (bad && bad.type === "element") {
51711
+ const bad = listChildren(el).find((c2) => !rendersElsewhere(c2.tag) && !ALLOWED_IN_LIST.has(c2.tag));
51712
+ if (bad) {
51706
51713
  out2.push({
51707
51714
  criteriaId: "1.3.1",
51708
51715
  el: bad,
@@ -51716,7 +51723,7 @@ var listStructure = {
51716
51723
  if (parent.tag === "template" || ancestors(el).some((a) => a.tag === "template" || a.tag !== "#fragment" && rendersElsewhere(a.tag))) continue;
51717
51724
  let host = parent;
51718
51725
  while (host && host.tag === "#fragment") host = host.parent;
51719
- if (!host) continue;
51726
+ if (!host || ["ul", "ol", "menu"].includes(host.tag)) continue;
51720
51727
  out2.push({
51721
51728
  criteriaId: "1.3.1",
51722
51729
  el,
@@ -52450,7 +52457,8 @@ var controlLabelMissing = {
52450
52457
  if (via === "title") continue;
52451
52458
  if (hasDynamicSpread(el)) continue;
52452
52459
  if (hasAttr(el, "placeholder")) continue;
52453
- if ((attr(el, "id") ?? "").includes("{")) continue;
52460
+ const id = attr(el, "id");
52461
+ if (id === void 0 ? hasBoundAttr(el, "id") : id.includes("{")) continue;
52454
52462
  out2.push({
52455
52463
  criteriaId: "4.1.2",
52456
52464
  el,
@@ -60599,9 +60607,13 @@ var wcag_default2 = {
60599
60607
  examples: [
60600
60608
  {
60601
60609
  lang: "html",
60602
- good: '<form name="signup" id="signup" method="post" action="">\n <p id="errors" aria-live="assertive"></p>\n <div>\n <label for="first">First Name (required)</label>\n <input aria-invalid="false" autocomplete="given-name" id="first" name="first" type="text">\n </div>\n <div>\n <label for="last">Last Name (required)</label>\n <input aria-invalid="false" autocomplete="family-name" id="last" name="last" type="text">\n </div>\n <div>\n <label for="email">Email (required)</label>\n <input aria-invalid="false" autocomplete="email" id="email" name="email" type="text">\n </div>\n <div>\n <button id="button" type="submit">Sign Up</button>\n </div>\n</form>',
60610
+ good: `<dialog aria-labelledby="alert-heading" id="date-alert" role="alertdialog">
60611
+ <h1 id="alert-heading">Error</h1>
60612
+ <p>Employee's Birth Date is after their hire date. Please verify the birth date and hire date.</p>
60613
+ <button command="close" commandfor="date-alert" type="button">Return to page and correct error</button>
60614
+ </dialog>`,
60603
60615
  note: {
60604
- en: "Good: Using aria-invalid to Indicate An Error Field (ARIA21)."
60616
+ en: "Good: Using aria-alertdialog to Identify Errors (ARIA18)."
60605
60617
  }
60606
60618
  }
60607
60619
  ],
@@ -60714,7 +60726,7 @@ var wcag_default2 = {
60714
60726
  fr: "Nom, r\xF4le et valeur"
60715
60727
  },
60716
60728
  summary: {
60717
- en: "Give components correct names, roles, states, and values. People using assistive technology understand all components. Assistive technology only works well when code is done properly."
60729
+ en: "Give components appropriate names, roles, states, and values. People using assistive technology understand all components. Assistive technology only works well when code is done properly."
60718
60730
  },
60719
60731
  examples: [
60720
60732
  {
@@ -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.1'
30
+ ULTRA11Y_VERSION: '5.55.2'
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
@@ -512,7 +512,7 @@ const MEASURED_SCS = ["1.3.4", "1.4.1", "1.4.3", "1.4.4", "1.4.10", "1.4.11", "1
512
512
  * nothing below it — no alt, no aria-label, no text — is in the accessibility tree. The
513
513
  * container IS the image. Only `img`: the children of a `button` or a `tab` still give their
514
514
  * text, and an image's alt, to the accessible name (#108). */
515
- const insideRoleImg = (e: El): boolean => ancestors(e).some((a) => (attr(a, "role") ?? "").trim().toLowerCase() === "img");
515
+ const insideRoleImg = (e: El): boolean => ancestors(e).some((a) => roleOf(a) === "img");
516
516
 
517
517
  export const SUBJECTS: Record<string, Subject> = {
518
518
  // Every image-like element and the alternative it carries. Class = (alt, src): the same
@@ -522,7 +522,7 @@ export const SUBJECTS: Record<string, Subject> = {
522
522
  elementsByTag(d, "img", "svg", "area", "object", "embed", "canvas")
523
523
  // RGAA 1.1.3 is about nothing else: an image button is an image.
524
524
  .concat(elementsByTag(d, "input").filter((e) => (attr(e, "type") ?? "").trim().toLowerCase() === "image"))
525
- .concat(d.elements.filter((e) => attr(e, "role") === "img"))
525
+ .concat(d.elements.filter((e) => roleOf(e) === "img"))
526
526
  .filter((e, i, a) => a.indexOf(e) === i && !insideRoleImg(e))
527
527
  .map((e) => {
528
528
  // The other mechanisms the RGAA tests name, when present — an image's verdict turns
@@ -975,9 +975,9 @@
975
975
  "examples": [
976
976
  {
977
977
  "lang": "html",
978
- "good": "<form name=\"signup\" id=\"signup\" method=\"post\" action=\"\">\n <p id=\"errors\" aria-live=\"assertive\"></p>\n <div>\n <label for=\"first\">First Name (required)</label>\n <input aria-invalid=\"false\" autocomplete=\"given-name\" id=\"first\" name=\"first\" type=\"text\">\n </div>\n <div>\n <label for=\"last\">Last Name (required)</label>\n <input aria-invalid=\"false\" autocomplete=\"family-name\" id=\"last\" name=\"last\" type=\"text\">\n </div>\n <div>\n <label for=\"email\">Email (required)</label>\n <input aria-invalid=\"false\" autocomplete=\"email\" id=\"email\" name=\"email\" type=\"text\">\n </div>\n <div>\n <button id=\"button\" type=\"submit\">Sign Up</button>\n </div>\n</form>",
978
+ "good": "<dialog aria-labelledby=\"alert-heading\" id=\"date-alert\" role=\"alertdialog\">\n <h1 id=\"alert-heading\">Error</h1>\n <p>Employee's Birth Date is after their hire date. Please verify the birth date and hire date.</p>\n <button command=\"close\" commandfor=\"date-alert\" type=\"button\">Return to page and correct error</button>\n</dialog>",
979
979
  "note": {
980
- "en": "Good: Using aria-invalid to Indicate An Error Field (ARIA21)."
980
+ "en": "Good: Using aria-alertdialog to Identify Errors (ARIA18)."
981
981
  }
982
982
  }
983
983
  ],
@@ -1086,7 +1086,7 @@
1086
1086
  "fr": "Nom, rôle et valeur"
1087
1087
  },
1088
1088
  "summary": {
1089
- "en": "Give components correct names, roles, states, and values. People using assistive technology understand all components. Assistive technology only works well when code is done properly."
1089
+ "en": "Give components appropriate names, roles, states, and values. People using assistive technology understand all components. Assistive technology only works well when code is done properly."
1090
1090
  },
1091
1091
  "examples": [
1092
1092
  {
package/src/name.ts CHANGED
@@ -200,13 +200,17 @@ export function visibleLabelText(el: El): string {
200
200
  // span is not visible at all. Comparing an aria-label against them would demand that the name
201
201
  // repeat help text, which neither RGAA 11.2.5 nor WCAG 2.5.3 asks.
202
202
  const NOT_INTITULE_CLASS = /(^|\s)(fr-hint-text|fr-sr-only|sr-only|visually-hidden|visuallyhidden|hint-text|help-text)(\s|$)/;
203
+ // The visually hidden classes alone: a <label> (or a wrapper of it) that carries one is no
204
+ // visible label at all, so there is no intitulé for the name to contain (#115).
205
+ const VISUALLY_HIDDEN_CLASS = /(^|\s)(fr-sr-only|sr-only|visually-hidden|visuallyhidden)(\s|$)/;
203
206
  const FIELD_DESCENDANT = new Set(["input", "select", "textarea", "button", "datalist", "output"]);
204
207
 
205
208
  /** The PRIMARY visible text of a `<label>` — its intitulé — for the label-in-name comparison of
206
209
  * a form field: hidden subtrees, aria-hidden decoration, hint/sr-only spans and the nested
207
210
  * field itself (a wrapping label contains the <select> whose options are not label text) are
208
- * left out. Literal text only; a caller must still refuse an interpolated result. */
211
+ * left out, and a visually hidden label (sr-only on itself or a wrapper) has none. Literal text only; a caller must still refuse an interpolated result. */
209
212
  export function primaryLabelText(label: El): string {
213
+ if ([label, ...ancestors(label)].some((e) => VISUALLY_HIDDEN_CLASS.test(attr(e, "class") ?? ""))) return "";
210
214
  let out = "";
211
215
  const nonText = new Set(["script", "style", "title", "desc", "noscript", "template", "canvas", "video", "img", "svg"]);
212
216
  const walk = (n: HNode): void => {
@@ -66,7 +66,10 @@ const controlLabelMissing: Rule = {
66
66
  // caller renders: the shared-component pattern. Nothing in this document can prove the
67
67
  // field unlabelled, and a blocking NC on it is a guess (#94). The rendered tier, where
68
68
  // ids are resolved, decides — `axe:label` and this very rule on the page snapshots.
69
- if ((attr(el, "id") ?? "").includes("{")) continue;
69
+ // Same for a framework-bound id (Vue `:id="inputId"`, `v-bind:id`), where the literal
70
+ // attribute is absent (#115).
71
+ const id = attr(el, "id");
72
+ if (id === undefined ? hasBoundAttr(el, "id") : id.includes("{")) continue;
70
73
  out.push({
71
74
  criteriaId: "4.1.2",
72
75
  el,
@@ -143,6 +143,12 @@ function rendersElsewhere(tag: string): boolean {
143
143
  return !isIntrinsic(tag) || tag.includes("-") || tag === "component";
144
144
  }
145
145
 
146
+ /** The element children a list renders: a `#fragment` is transparent, its own children stand
147
+ * in its place (#115). */
148
+ function listChildren(el: El): El[] {
149
+ return el.children.flatMap((c) => (c.type !== "element" ? [] : c.tag === "#fragment" ? listChildren(c) : [c]));
150
+ }
151
+
146
152
  const listStructure: Rule = {
147
153
  id: "list-structure",
148
154
  criteria: ["1.3.1"],
@@ -154,8 +160,10 @@ const listStructure: Rule = {
154
160
  // Only intrinsic (HTML) children are a definite violation; a PascalCase
155
161
  // component child may itself render an <li>, so it is left to the cross-file
156
162
  // graph / human, never asserted here.
157
- const bad = el.children.find((c) => c.type === "element" && !rendersElsewhere(c.tag) && !ALLOWED_IN_LIST.has(c.tag));
158
- if (bad && bad.type === "element") {
163
+ // A fragment (`{open && (<><li/></>)}`) renders its children in its place: it is
164
+ // transparent, so the list's real children are those it carries (#115).
165
+ const bad = listChildren(el).find((c) => !rendersElsewhere(c.tag) && !ALLOWED_IN_LIST.has(c.tag));
166
+ if (bad) {
159
167
  out.push({
160
168
  criteriaId: "1.3.1",
161
169
  el: bad,
@@ -175,7 +183,7 @@ const listStructure: Rule = {
175
183
  // Only a fragment nested inside a known element still has a provable parent.
176
184
  let host: typeof parent | null = parent;
177
185
  while (host && host.tag === "#fragment") host = host.parent;
178
- if (!host) continue;
186
+ if (!host || ["ul", "ol", "menu"].includes(host.tag)) continue;
179
187
  out.push({
180
188
  criteriaId: "1.3.1",
181
189
  el,
@@ -234,7 +234,9 @@ const figureCaptionUnassociated: Rule = {
234
234
  for (const el of doc.elements) {
235
235
  if (el.tag !== "figure" || isHidden(el) || hasDynamicSpread(el)) continue;
236
236
  const desc = descendants(el);
237
- const caption = desc.find((d) => d.tag === "figcaption");
237
+ // Only this figure's own caption: a nested figure's <figcaption> belongs to that figure
238
+ // (its nearest figure ancestor), never to the outer one (#115).
239
+ const caption = desc.find((d) => d.tag === "figcaption" && ancestors(d).find((a) => a.tag === "figure") === el);
238
240
  if (!caption || !desc.some((d) => d !== caption && isCaptionedImage(d) && !ancestors(d).includes(caption))) continue;
239
241
  const captionText = collapseWs(textContent(caption));
240
242
  if (!captionText || captionText.includes("{") || mayInjectContent(caption)) continue;
@@ -2,7 +2,7 @@
2
2
  import type { Doc, El } from "../parse/html.js";
3
3
  import { attr, hasAttr, hasBoundAttr, hasDynamicSpread, descendants, ancestors } from "../parse/html.js";
4
4
  import { isIntrinsic } from "../parse/jsx-bridge.js";
5
- import { accessibleName, mayInjectContent, isHiddenFromAT, isDisplayHidden, isPresentational } from "../name.js";
5
+ import { accessibleName, mayInjectContent, isHiddenFromAT, isDisplayHidden, isPresentational, labelledbyIsDynamic } from "../name.js";
6
6
  import { ARIA_ATTRS, ARIA_REQUIRED_ATTRS, ARIA_REQUIRED_PARENT, IMPLICIT_CONTAINER_ROLE, NAME_PROHIBITED_ROLES, isValidAriaValue } from "../aria.js";
7
7
  import type { Rule, RuleFinding } from "./rule.js";
8
8
 
@@ -507,7 +507,9 @@ const menuitemEmptyName: Rule = {
507
507
  run(doc: Doc): RuleFinding[] {
508
508
  return doc.elements
509
509
  .filter((el) => ["menuitem", "menuitemcheckbox", "menuitemradio"].includes((attr(el, "role") ?? "").trim().toLowerCase()))
510
- .filter((el) => !isHiddenFromAT(el) && !hasDynamicSpread(el) && !mayInjectContent(el) && accessibleName(el, doc).trim() === "")
510
+ .filter(
511
+ (el) => !isHiddenFromAT(el) && !hasDynamicSpread(el) && !mayInjectContent(el) && !labelledbyIsDynamic(el) && accessibleName(el, doc).trim() === "",
512
+ )
511
513
  .map((el) => ({ criteriaId: "4.1.2", el, msgId: "menuitem-empty-name" }));
512
514
  },
513
515
  };
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.1";
3
+ export const VERSION = "5.55.2";
4
4
  export const SCHEMA_VERSION = 2;
5
5
 
6
6
  // Lang = the UI FRAME's language — the `L` localization tables each module (report,