Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad value meter for attribute role on element div. #1380

Open
Rezyan opened this issue May 14, 2022 · 2 comments · May be fixed by #1562
Open

Bad value meter for attribute role on element div. #1380

Rezyan opened this issue May 14, 2022 · 2 comments · May be fixed by #1562

Comments

@Rezyan
Copy link

Rezyan commented May 14, 2022

Hi, in my opinion the role meter is detected as an error when it should be considered as correct like the role progressbar:

Bad value meter for attribute role on element div.

See:

Code to reproduce:

<!DOCTYPE html>
<html lang="en">
	<head>
		<title>Issue</title>
	</head>

	<body>
		<h3 id="cpu_usage_label">Central Processing Unit (CPU) Usage</h3>
		<div role="meter" aria-valuenow="8.401915551037732" aria-valuemin="0" aria-valuemax="100" aria-labelledby="cpu_usage_label">
			<svg width="100" height="100" class="fill" aria-hidden="true" version="1.1" xmlns="http://www.w3.org/2000/svg" style="width: 8.40192%; color: rgb(34, 204, 0);">
				<rect x="0" y="0" width="100%" height="100%" fill="currentColor"></rect>
			</svg>
		</div>
	</body>
</html>

Screenshot:

1

@scottaohara
Copy link
Contributor

yup. it's a valid role, new from aria 1.2, but looks like it just hasn't been added to the validator yet.

@johnnygerard
Copy link

I got the same issue. It would be nice to get an answer after almost two years.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants