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

Add a placeholder example to form-controls-acc-name (e086e5) #1405

Closed
WilcoFiers opened this issue Jul 29, 2020 · 2 comments · Fixed by #1420
Closed

Add a placeholder example to form-controls-acc-name (e086e5) #1405

WilcoFiers opened this issue Jul 29, 2020 · 2 comments · Fixed by #1420

Comments

@WilcoFiers
Copy link
Member

I recently learned that placeholder is now included in the accessible name computation. I think it would be useful to add the following passed example:

<input placeholder="Family name" />

(Didn't put it in because this rule is currently being looked at by the ACT TF. Adding it now would invalidate the implementation data.

There is some test data for it here: dequelabs/axe-core#2413 this work in all major browsers.

@Jym77
Copy link
Collaborator

Jym77 commented Aug 11, 2020

https://www.w3.org/TR/html-aam-1.0/#input-type-text-input-type-password-input-type-search-input-type-tel-input-type-email-input-type-url-and-textarea-element-accessible-name-computation

So it's actually part of the second layer in the name computation (just like <button type="submit"></button> ends up having "Submit" as accessible name), not part of the accessible name computation algorithm.

@kasperisager
Copy link
Contributor

@Jym77 It falls under Step 2D of the accessible name computation: https://w3c.github.io/accname/#step2D

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

Successfully merging a pull request may close this issue.

3 participants