Skip to content

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

@jerclarke

Description

@jerclarke

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Content:HTMLHypertext Markup Language docsgoal: best practices(Experimental label) Issues about content displaying unusual approaches.help wantedIf you know something about this topic, we would love your help!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions