BarrierLab

Regelkennungen

Alle Befund-Kennungen aus a11y-rules 0.10 mit Tier, WCAG-Kriterium und Vorgabeschwere.

Die Kennungen sind über alle Oberflächen stabil. Die Tabellen geben die Deklarationen wieder, die structure_metas, semantics_metas und rendering_metas liefern; examples/rules.json ist ihre Ausgabe. Die Schwere ist die Vorgabe der Regel, einzelne Befunde dürfen davon abweichen.

Tier 1: Struktur

35 Kennungen, Document, läuft auf jedem Host.

KennungWCAGSchwereHinweis der Regel
document/lang-missing3.1.1highThe <html> element needs a valid lang attribute.
document/lang-invalid3.1.1highThe <html> element needs a valid lang attribute.
document/title-missing2.4.2highEvery page needs a meaningful <title>.
document/title-empty2.4.2highEvery page needs a meaningful <title>.
zoom/viewport-locked1.4.4, 1.4.10highA viewport must be present and must not prevent zooming.
zoom/viewport-scale-limited1.4.4, 1.4.10highA viewport must be present and must not prevent zooming.
zoom/viewport-missing1.4.4, 1.4.10highA viewport must be present and must not prevent zooming.
headings/empty1.3.1, 2.4.6mediumHeadings form the outline; do not skip levels.
headings/skip-level1.3.1, 2.4.6mediumHeadings form the outline; do not skip levels.
headings/h1-missing1.3.1, 2.4.6mediumHeadings form the outline; do not skip levels.
headings/h1-multiple1.3.1, 2.4.6mediumHeadings form the outline; do not skip levels.
images/alt-missing1.1.1highInformative images need descriptive alt text.
images/alt-suspicious1.1.1highInformative images need descriptive alt text.
forms/label-missing1.3.1, 3.3.2, 4.1.2criticalEvery input needs an associated label.
forms/placeholder-as-label1.3.1, 3.3.2, 4.1.2criticalEvery input needs an associated label.
aria/role-invalid4.1.2highUse only roles from the ARIA specification.
aria/role-abstract4.1.2highUse only roles from the ARIA specification.
aria/reference-missing1.3.1, 4.1.2highARIA references must point to IDs that exist.
aria/required-attribute-missing4.1.2highA role that announces a state needs the attribute carrying it.
ids/duplicate4.1.1mediumIDs must be unique within the document.
keyboard/positive-tabindex2.4.3highPositive tabindex values break the tab order.
keyboard/hidden-focusable1.3.1, 4.1.2highFocusable elements must not be aria-hidden.
lists/invalid-structure1.3.1medium<ul> and <ol> may only have <li> as direct children and must not be empty.
lists/empty1.3.1medium<ul> and <ol> may only have <li> as direct children and must not be empty.
lists/term-without-definition1.3.1medium<ul> and <ol> may only have <li> as direct children and must not be empty.
tables/header-missing1.3.1highData tables need <th> header cells.
tables/name-missing1.3.1highData tables need <th> header cells.
tables/presentational-with-headers1.3.1highData tables need <th> header cells.
landmarks/main-missing1.3.1, 2.4.1highLandmarks structure the page for everyone who cannot see it.
landmarks/main-duplicate1.3.1, 2.4.1highLandmarks structure the page for everyone who cannot see it.
landmarks/navigation-missing1.3.1, 2.4.1highLandmarks structure the page for everyone who cannot see it.
landmarks/banner-missing1.3.1, 2.4.1highLandmarks structure the page for everyone who cannot see it.
landmarks/contentinfo-missing1.3.1, 2.4.1highLandmarks structure the page for everyone who cannot see it.
keyboard/skip-link-missing2.4.1mediumA skip link bypasses blocks that repeat before the content.
lists/item-outside-list1.3.1mediumnicht deklariert, siehe unten

Tier 2: Semantik

5 Kennungen, braucht Semantics, also Rolle und Accessible Name.

KennungWCAGSchwereHinweis der Regel
links/name-missing2.4.4, 4.1.2criticalEvery link needs a name that describes its target.
buttons/name-missing4.1.2criticalEvery button needs a name that describes what it does.
svg/name-missing1.1.1highInformative SVGs need a name, decorative ones role=“presentation”.
links/ambiguous-name2.4.4mediumLinks with the same name should point to the same target.
links/generic-name2.4.4mediumLink text should say where it leads without the surrounding sentence.

Tier 3: Darstellung

2 Kennungen, braucht Rendering, also berechnete Stile und Geometrie.

KennungWCAGSchwereHinweis der Regel
contrast/text-insufficient1.4.3highText needs a contrast ratio against its background of at least 4.5:1, or 3:1 for large text. Large text starts at 18 pt, or 14 pt when bold.
contrast/text-undetermined1.4.3highText needs a contrast ratio against its background of at least 4.5:1, or 3:1 for large text. Large text starts at 18 pt, or 14 pt when bold.

Eine Kennung ohne Deklaration

lists/item-outside-list meldet einen Listeneintrag ohne umgebende Liste. Die Regel erzeugt die Kennung, in 0.10 steht sie aber in keinem Meta::ids. Befunde mit dieser Kennung erscheinen deshalb ohne passenden RuleRun. Zusammen mit ihr kommt der Regelbestand auf 42 Kennungen, deklariert sind 41.

review statt fail

Nicht jede fehlende Angabe ist ein Verstoß. landmarks/navigation-missing, landmarks/banner-missing, landmarks/contentinfo-missing, headings/h1-multiple und keyboard/skip-link-missing liefern review: main muss da sein, aber eine Seite darf ohne Navigation auskommen, und ein Sprunglink lässt sich nur über Linktext und Klassennamen erkennen. links/ambiguous-name und links/generic-name sind zwei verschiedene Regeln und liefern beide review: Die eine sagt „zwei Links heißen gleich, führen aber woandershin“, die andere „dieser Text sagt für sich genommen nichts über das Ziel“.

Edit this page on GitHub