1. The interface glance matches

@avarok/glance@0.1.0Updated 1 min readView as markdown

Reference: axe-core 4.14.1 (npm, MPL-2.0), the version installed on 2026-11-29.

The interface is specified in docs/spec/, written by separate spec agents from public documentation, standards and black-box runs (spec/SOURCES.md). This chapter fixes which parts of it glance matches and in what order. Per-member status: COMPAT.md.

1.1 Entry points

  • npm package @avarok/glance, exporting the same object shape as the reference's CommonJS/ESM entry: the axe namespace with source added (spec/api-reporters.md).
  • glance.js / glance.min.js and the aliases axe.js / axe.min.js: one script that defines window.axe when evaluated in a page.
  • @avarok/glance/axe.d.ts: declarations compatible with the reference's public types.

1.2 What "the same" covers

  • Names, parameters, defaults, argument disambiguation and thrown error strings of every public member (spec/api-*.md).
  • The results object: key order, ordering of rules, nodes and checks, impact roll-up, the check lists on each node, target/ancestry/xpath, data shapes and messageKey values (spec/results-*.md).
  • Rule ids, tags (in order), impacts, enabled-by-default flags and ACT ids (spec/rules-metadata.md).

1.3 What differs by design

  • Human-readable strings (description, help, check message, failureSummary) are glance's own English text. Their placeholders take the same data fields, so custom locales written for the reference's message structure apply unchanged.
  • testEngine names glance. axe.version stays at the interface level, 4.14.1.
  • Rules outside the MVP are absent until built (COMPAT.md).

1.4 Matching order

  1. run/getRules/configure/reset and the v1 results object, with three simple rules.
  2. The shared facts (roles, names, visibility, focus, language).
  3. The 70 MVP rules, the geometry rules last.
  4. Frames (runPartial/finishRun, messenger), reporters, plugins, utils, commons.