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

Accessibility section of <input type='search'> should mention <search> rather than <form role='search'> #37799

Open
jerclarke opened this issue Jan 24, 2025 · 1 comment
Labels
Content:Accessibility Accessibility docs Content:HTML Hypertext Markup Language docs help wanted If you know something about this topic, we would love your help!

Comments

@jerclarke
Copy link

MDN URL

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/search

What specific section or headline is this issue about?

#search_form_labels_and_accessibility

What information was incorrect, unhelpful, or incomplete?

It encourages you to use <form role='search'> for accessibility. It seems to me that this is no longer (and maybe was never) recommended.

What did you expect to see?

It seems to me that this should instead highlight the use of the <search> tag, maybe even by just linking, since the article about the search tag covers everything in detail:

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/search#accessibility

Do you have any supporting links, references, or citations?

https://adrianroselli.com/2015/08/where-to-put-your-search-role.html

https://www.scottohara.me/blog/2023/03/24/search-element.html

Do you have anything more you want to share?

Thanks!

MDN metadata

Page report details
@jerclarke jerclarke added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Jan 24, 2025
@github-actions github-actions bot added the Content:HTML Hypertext Markup Language docs label Jan 24, 2025
@hamishwillee hamishwillee assigned estelle and unassigned estelle Jan 26, 2025
@hamishwillee hamishwillee added Content:Accessibility Accessibility docs and removed needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. labels Jan 26, 2025
@hamishwillee
Copy link
Collaborator

Thanks for posting. Makes a lot of sense. Probably also an update to https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/search_role

@hamishwillee hamishwillee added the help wanted If you know something about this topic, we would love your help! label Jan 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:Accessibility Accessibility docs Content:HTML Hypertext Markup Language docs help wanted If you know something about this topic, we would love your help!
Projects
None yet
Development

No branches or pull requests

3 participants