Skip to content

Commit e73d506

Browse files
committed
Add a type="search" to the search bar in the documentation.
1 parent a3aa325 commit e73d506

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/librustdoc/html/layout.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ pub fn render<T: fmt::Default, S: fmt::Default>(
6060
<form class=\"search-form js-only\">
6161
<input class=\"search-input\" name=\"search\"
6262
autocomplete=\"off\"
63-
placeholder=\"Search documentation...\" />
63+
placeholder=\"Search documentation...\"
64+
type=\"search\" />
6465
<button class=\"do-search\">Search</button>
6566
</form>
6667
</nav>

0 commit comments

Comments
 (0)