Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Technique ARIA21: Using aria-invalid to Indicate An Error Field #3799

Open
madisilvesagile opened this issue Apr 24, 2024 · 1 comment
Open

Comments

@madisilvesagile
Copy link

In the example:

<div>
    <label for="email">Email (required)</label>
    <input type="text" name="email" id="email">
  </div>

Type should be email
See correct version:

<div>
    <label for="email">Email (required)</label>
    <input type="email" name="email" id="email">
  </div>

There's 3 markup examples all of them have the same mistake.

@madisilvesagile madisilvesagile changed the title Example email input type is incorrect Technique ARIA21: Using aria-invalid to Indicate An Error Field Apr 24, 2024
@patrickhlauke
Copy link
Member

patrickhlauke commented Apr 24, 2024

not a "mistake". it's perfectly valid to use type="text" even for emails in your markup (noting also that these techniques were created about a decade before type="email" even existed)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants