8000 Addition: clarify when to expose a required element as invalid by scottaohara · Pull Request #429 · w3c/html-aam · GitHub
[go: up one dir, main page]

Skip to content
8 changes: 8 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4973,6 +4973,14 @@ <h3>HTML Attribute State and Property Mappings</h3>
<td class="ax"><div class="general">Use WAI-ARIA mapping</div></td>
<td class="comments">
If the element includes both the `required` attribute and the `aria-required` attribute with a valid value, User Agents MUST expose only the `required` attribute value.
<p>
If an element is <a data-cite="html/input.html#concept-input-required">required</a>, user agents MUST NOT expose the
element with an intitial invalid state (<a class="core-mapping" href="#ariaInvalidTrue">`aria-invalid="true"`</a>).
Only after a user has purposefully interacted with a required element, or attempted to submit a form and the element, or elements, do not meet
<a data-cite="html/form-control-infrastructure.html#constraint-validation">constraint validation</a> would it be expected for
these required elements to be exposed in the invalid state. Until then, user agents MUST expose the elements as
(<a class="core-mapping" href="#ariaInvalidFalse">`aria-invalid="false"`</a>).
</p>
</td>
</tr>
<tr tabindex="-1" id="att-reversed">
Expand Down
0