Original

This invalid form input includes the aria-description, aria-invalid attributes. It also includes a role="alert"

no alert

This invalid form input does not include role="alert"

type = text

This invalid form input is the same as above, but uses type="text" to avoid the browser from getting tripped up by the password type.

error message

this div could use role="alert" which would announce the content when it appears, but would not move focus.