50.听WAI-ARIA validation error is present when page loads

x incorrect example

Description:听A WAI-ARIA validation error message is already present on the page when the page is loaded.

Context:听Validation messages should not automatically display when a page is first loaded. Messages should only display after the element has been interacted with.

<input type="email" value="" name="EMAIL" aria-required="true" aria-invalid="true">

How to fix it:听Make sure WAI-ARIA validation error messages only appear when something is invalid.

<input type="email" value="" name="EMAIL" aria-required="true">

Techniques: