Merge pull request #9307 from timhoffm/search-corrections

Prevent corrections and completions in search field
This commit is contained in:
Takeshi KOMIYA 2021-06-13 20:07:00 +09:00 committed by GitHub
commit 99bfdb6681
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@
{% endblock %} {% endblock %}
{% block searchbox %} {% block searchbox %}
<form action="" method="get"> <form action="" method="get">
<input type="text" name="q" aria-labelledby="search-documentation" value="" /> <input type="text" name="q" aria-labelledby="search-documentation" value="" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
<input type="submit" value="{{ _('search') }}" /> <input type="submit" value="{{ _('search') }}" />
<span id="search-progress" style="padding-left: 10px"></span> <span id="search-progress" style="padding-left: 10px"></span>
</form> </form>

View File

@ -12,7 +12,7 @@
<h3 id="searchlabel">{{ _('Quick search') }}</h3> <h3 id="searchlabel">{{ _('Quick search') }}</h3>
<div class="searchformwrapper"> <div class="searchformwrapper">
<form class="search" action="{{ pathto('search') }}" method="get"> <form class="search" action="{{ pathto('search') }}" method="get">
<input type="text" name="q" aria-labelledby="searchlabel" /> <input type="text" name="q" aria-labelledby="searchlabel" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"/>
<input type="submit" value="{{ _('Go') }}" /> <input type="submit" value="{{ _('Go') }}" />
</form> </form>
</div> </div>