Skip to content

Should Error descriptive really require the error to be in the accessibility tree? [36b590] #1972

Open
@WilcoFiers

Description

@WilcoFiers

From: https://www.w3.org/WAI/standards-guidelines/act/rules/36b590/proposed/#failed-example-4

<form>
	<label for="age">Age (years)</label>
	<input type="number" id="age" value="0" />
	<span id="error" aria-hidden="true">Invalid value for age. Age must be at least 1.</span><br />
	<input type="button" value="Submit" />
</form>

While this is certainly a problem, I don't really think this is a 3.3.1 problem. Putting aria-hidden on anything that shouldn't be hidden is a failure of WCAG. I don't know why this would be a failure of 3.3.1, but if it was on for example a heading, that same problem would go under 1.3.1.

I feel like it might be good for us to revisit these and have a dedicated rule for using aria-hidden on things that shouldn't be hidden.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions