w3c / html-aria

ARIA in HTML
https://w3c.github.io/html-aria/
Other
181 stars 48 forks source link

Incorrect or confusing description of aria-required usage #225

Closed Haprog closed 3 years ago

Haprog commented 4 years ago

See this table: https://www.w3.org/TR/html-aria/#document-conformance-requirements-for-use-of-aria-attributes-in-html

Here's a screenshot with some unrelated rows deleted for easily showing the column headers with few related rows: image

The highlighted piece of text in the third column seem to be contradicting since the second column defines that aria-required="true" should not be used on element with a required attribute.

Compare this text with the third column of the "disabled" and "readonly" rows which are more logical.

Should this instead say (similarly to disabled and readonly):

Use the required attribute on any element that is allowed the required attribute in HTML.

Only use the aria-required attribute for elements that are not allowed to have a required attribute in HTML."

Or is the aria-required a more special case compared to aria-disabled or aria-readonly?

scottaohara commented 3 years ago

closed by #262