Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9c530bc

Browse files
authored
Merge pull request #20381 from timhoffm/search-corrections
Prevent corrections and completions in search field
2 parents 63261cc + 98ef540 commit 9c530bc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/_templates/layout.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
<li><a href="{{ pathto('devel/index') }}">Contributing</a></li>
6464
<li class="nav-right">
6565
<form class="search" action="{{ pathto('search') }}" method="get">
66-
<input type="text" name="q" aria-labelledby="searchlabel" placeholder="Search"/>
66+
<input type="text" name="q" aria-labelledby="searchlabel" placeholder="Search" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
6767
</form>
6868
</li>
6969
</ul>

doc/_templates/search.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ <h1 id="search-documentation">{{ _('Search') }}</h1>
1717
"codex ellipse".
1818
</p>
1919
<form action="" method="get">
20-
<input type="text" name="q" value="" />
20+
<input type="text" name="q" value="" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
2121
<input type="submit" value="{{ _('search') }}" />
2222
<span id="search-progress" style="padding-left: 10px"></span>
2323
</form>

0 commit comments

Comments
 (0)