Meter or progress bar without a name
names/indicator-name-missing
- WCAG success criterion
- 1.1.1 (level A)
- Outcome class
- Automatic. An automated check that can report a confirmed violation.
- Area
- Accessibility, Content & Alternatives
- Default severity
- high
- axe-core rule
aria-progressbar-name
Why we flag this
Screen reader users hear a value without learning what it measures.
A <meter>, <progress> or an element with role="meter" or role="progressbar" has no accessible name from a <label>, aria-label, aria-labelledby or title, so a screen reader announces only the role and the value; a gauge is non-text content, and its name is the text alternative that says what is measured.
What the rule checks
Scope. Elements in the accessibility tree with the role meter or progressbar: native <meter> and <progress>, and elements with role="meter" or role="progressbar".
Expectation. Fails when the computed name is empty: a gauge is non-text content, and its name is the text alternative that says what is measured. A <label for>, aria-label, aria-labelledby or title passes. The value alone (aria-valuenow, the element's content) is no name. Hidden subtrees are out of scope.
Source. WCAG 2.2 SC 1.1.1 Non-text Content; WAI-ARIA 1.2 meter and progressbar (Accessible Name Required: True); HTML-AAM <meter>, <progress>; accname 1.2
Detection: shared; needs dom, ax_tree.
Failing example
The check reports a violation here. Corpus case indicator_names, element meter#quota. The page may contain further findings for other rules.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Upload status</title>
</head>
<body>
<main>
<h1>Upload status</h1>
<meter id="quota" value="0.4">40%</meter>
<progress id="upload" value="30" max="100">30%</progress>
<div id="battery" role="meter" aria-valuenow="7" aria-valuemin="0" aria-valuemax="10">7 of 10</div>
<div id="sync" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100"></div>
<label for="disk">Disk usage</label>
<meter id="disk" value="0.6">60%</meter>
<progress id="backup" value="50" max="100" aria-label="Backup progress">50%</progress>
<p id="cpu-label">CPU load</p>
<div id="cpu" role="meter" aria-labelledby="cpu-label" aria-valuenow="3" aria-valuemin="0" aria-valuemax="10"></div>
<div id="index" role="progressbar" title="Search index build" aria-valuenow="80" aria-valuemin="0" aria-valuemax="100"></div>
<meter id="hidden-meter" value="0.2" style="display:none"></meter>
<div id="decorative" role="progressbar" aria-hidden="true" aria-valuenow="10"></div>
</main>
</body>
</html>Passing example
The check passes here and reports nothing. Corpus case value_widgets_native. The page may contain further findings for other rules.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Native value widgets corpus case</title>
</head>
<body>
<main>
<h1>Native range, number and date inputs</h1>
<!-- Native controls expose their value without aria-valuenow, and the
day/month/year fields of a date input are the browser's (#656). -->
<label for="volume">Volume</label>
<input id="volume" type="range" min="0" max="10">
<label for="zoom">Zoom</label>
<input id="zoom" type="range" role="slider" value="3" min="0" max="10">
<label for="qty">Quantity</label>
<input id="qty" type="number">
<label for="amount">Amount</label>
<input id="amount" type="number" value="4">
<input type="date" aria-label="Order date value">
<label for="time">Pickup time</label>
<input id="time" type="time">
<label for="month">Billing month</label>
<input id="month" type="month">
<label for="week">Calendar week</label>
<input id="week" type="week">
<label for="appointment">Appointment</label>
<input id="appointment" type="datetime-local">
<label for="disk">Disk usage</label>
<meter id="disk" value="0.6">60%</meter>
<hr>
<div role="slider" tabindex="0" aria-label="Custom with value"
aria-valuenow="5" aria-valuemin="0" aria-valuemax="10"></div>
<div role="slider" aria-label="Hidden custom slider" style="display:none"></div>
</main>
</body>
</html>This page is generated from the rule catalogue and the rule contracts; see therule overview for how the outcome classes are derived.